Skip to content

Commit

Permalink
3771: Only use timeline entries tied to the currently viewing account (
Browse files Browse the repository at this point in the history
…#4857)

Fixes (should) doubled reply posts in timelines
(https://corteximplant.com/@Sirs0ri/113783407002282357)

Hard to test as you need two accounts logged in to Tusky with
operlapping locally cached account data.
  • Loading branch information
Lakoja authored Jan 7, 2025
1 parent 93fb9c2 commit 1c79c43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ FROM HomeTimelineEntity h
LEFT JOIN TimelineStatusEntity s ON (h.statusId = s.serverId AND s.tuskyAccountId = :tuskyAccountId)
LEFT JOIN TimelineAccountEntity a ON (s.authorServerId = a.serverId AND a.tuskyAccountId = :tuskyAccountId)
LEFT JOIN TimelineAccountEntity rb ON (h.reblogAccountId = rb.serverId AND rb.tuskyAccountId = :tuskyAccountId)
LEFT JOIN TimelineAccountEntity replied ON (s.inReplyToAccountId = replied.serverId)
LEFT JOIN TimelineAccountEntity replied ON (s.inReplyToAccountId = replied.serverId AND replied.tuskyAccountId = :tuskyAccountId)
WHERE h.tuskyAccountId = :tuskyAccountId
ORDER BY LENGTH(h.id) DESC, h.id DESC"""
)
Expand Down

0 comments on commit 1c79c43

Please sign in to comment.