summaryrefslogtreecommitdiff
path: root/internal/db/bundb
diff options
context:
space:
mode:
authorLibravatar Umar Getagazov <umar@handlerug.me>2023-04-19 14:42:00 +0300
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2023-04-19 14:59:59 +0200
commit0744477a741ae7e15ecfe4a2310b61e5f4cde384 (patch)
tree05fc58a006f660dd74cd54d798e6135a713cffc6 /internal/db/bundb
parent[bugfix] Fix single author threads not appearing in home timeline (#1679) (diff)
downloadgotosocial-0744477a741ae7e15ecfe4a2310b61e5f4cde384.tar.xz
[bugfix] Fix the bookmarks list API endpoint returning an empty array (#1700)
Diffstat (limited to 'internal/db/bundb')
-rw-r--r--internal/db/bundb/statusbookmark.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/statusbookmark.go b/internal/db/bundb/statusbookmark.go
index 92567b89a..f7d19cd23 100644
--- a/internal/db/bundb/statusbookmark.go
+++ b/internal/db/bundb/statusbookmark.go
@@ -40,7 +40,7 @@ func (s *statusBookmarkDB) GetStatusBookmark(ctx context.Context, id string) (*g
err := s.conn.
NewSelect().
Model(bookmark).
- Where("? = ?", bun.Ident("status_bookmark.ID"), id).
+ Where("? = ?", bun.Ident("status_bookmark.id"), id).
Scan(ctx)
if err != nil {
return nil, s.conn.ProcessError(err)