summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Umar Getagazov <umar@handlerug.me>2023-04-19 14:42:00 +0300
committerLibravatar GitHub <noreply@github.com>2023-04-19 13:42:00 +0200
commitcb1f935013b14a3a77ad5cc45a5c18ab9eea7bcd (patch)
tree614b0cc112f3f23a7c8715cddeba9e065e37fd29
parent[feature] Receive notification when followed account posts (if desired) (#1680) (diff)
downloadgotosocial-cb1f935013b14a3a77ad5cc45a5c18ab9eea7bcd.tar.xz
[bugfix] Fix the bookmarks list API endpoint returning an empty array (#1700)
-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)