From 477ae50933ab7447757752ec35bf898db287acff Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 9 Dec 2022 05:37:12 -0500 Subject: [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 --- testrig/db.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testrig/db.go') 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) } -- cgit v1.2.3