Skip to content

Commit

Permalink
show posts by followed users even if not accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 7, 2023
1 parent c61a28f commit 4fe463e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions front/inbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func dailyPosts(w text.Writer, r *request, day time.Time) {
left join (
select follows.followed, persons.actor, stats.avg, stats.last from
(
select followed from follows where follower = $1 and accepted = 1
select followed from follows where follower = $1
) follows
join
persons
Expand Down Expand Up @@ -96,7 +96,7 @@ func dailyPosts(w text.Writer, r *request, day time.Time) {
on
myposts.id = notes.object->>'inReplyTo'
left join (
select notes.object->>'inReplyTo' as inreplyto, notes.author, follows.id as follow from notes left join follows on follows.follower = $1 and follows.followed = notes.author and follows.accepted = 1 where notes.inserted >= $3
select notes.object->>'inReplyTo' as inreplyto, notes.author, follows.id as follow from notes left join follows on follows.follower = $1 and follows.followed = notes.author where notes.inserted >= $3
) replies
on
replies.inreplyto = notes.id and replies.author != notes.author
Expand Down

0 comments on commit 4fe463e

Please sign in to comment.