Skip to content

Commit

Permalink
avoid in_reply_to_account lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
judell committed Apr 4, 2023
1 parent 3a79281 commit 97bda06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query.sp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ locals {
else ' '
end as boosted,
case
when in_reply_to_account_id is not null then '' || ( select acct from mastodon_account where id = in_reply_to_account_id )
when in_reply_to_account_id is not null then '' || (regexp_match(content, '@\w+'))[1]
else ''
end as in_reply_to,
case
Expand Down

0 comments on commit 97bda06

Please sign in to comment.