Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 12, 2025
1 parent 68b9539 commit 84733cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inbox/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"database/sql"
"fmt"

"github.com/dimkr/tootik/cfg"
)

Expand Down Expand Up @@ -78,7 +79,7 @@ func (u FeedUpdater) Run(ctx context.Context) error {
notes.author != myposts.author and
notes.inserted >= $2 and
myposts.author like $1 and
not exists (select 1 from feed where feed.follower = notes.author and feed.note->>'$.id' = notes.id and feed.sharer is null)
not exists (select 1 from feed where feed.follower = myposts.author and feed.note->>'$.id' = notes.id and feed.sharer is null)
union all
select follows.follower, notes.object as note, authors.actor as author, sharers.actor as sharer, shares.inserted from
follows
Expand Down

0 comments on commit 84733cd

Please sign in to comment.