Skip to content

Commit f074bd4

Browse files
committed
fix SQL-Statement for pagination
1 parent bbc9183 commit f074bd4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

hive/server/bridge_api/cursor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,11 @@ async def pids_by_bookmarks(db, account: str, sort: str = 'bookmarks', category:
478478
# order by age of bookmarks
479479
order_by = "bookmarks.bookmarked_at DESC"
480480
if start_permlink:
481-
join = "JOIN hive_posts AS posts ON bookmarks.post_id = posts.id"
482481
seek = """
483482
AND bookmarks.bookmarked_at < (
484-
SELECT bookmarked_at FROM hive_bookmarks WHERE post_id = :start_id
483+
SELECT bookmarked_at FROM hive_bookmarks
484+
WHERE post_id = :start_id
485+
AND account = :account
485486
)
486487
"""
487488

0 commit comments

Comments
 (0)