summaryrefslogtreecommitdiff
path: root/testrig/db.go
diff options
context:
space:
mode:
authorLibravatar Matthew Phillips <matthew@matthewphillips.info>2022-12-09 05:37:12 -0500
committerLibravatar GitHub <noreply@github.com>2022-12-09 11:37:12 +0100
commit477ae50933ab7447757752ec35bf898db287acff (patch)
tree28750a1aea3cda180ca1461cfad7ea130c22bba1 /testrig/db.go
parent[chore] move caches to a separate State{} structure (#1078) (diff)
downloadgotosocial-477ae50933ab7447757752ec35bf898db287acff.tar.xz
[feature] Allow users to create + delete bookbarks, and view bookmarked statuses (#1168)
* Implement Bookmarks * Update based on review comments * Update swagger doc * Fix argument passing to status.Bookmark * Update changed test * Updates based on latest PR review
Diffstat (limited to 'testrig/db.go')
-rw-r--r--testrig/db.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/testrig/db.go b/testrig/db.go
index 508f10b76..3e34344bc 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -261,6 +261,12 @@ func StandardDBSetup(db db.DB, accounts map[string]*gtsmodel.Account) {
}
}
+ for _, v := range NewTestBookmarks() {
+ if err := db.Put(ctx, v); err != nil {
+ log.Panic(err)
+ }
+ }
+
if err := db.CreateInstanceAccount(ctx); err != nil {
log.Panic(err)
}