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 --- internal/processing/status/status.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/processing/status/status.go') diff --git a/internal/processing/status/status.go b/internal/processing/status/status.go index c63769c76..d31b69b38 100644 --- a/internal/processing/status/status.go +++ b/internal/processing/status/status.go @@ -54,6 +54,10 @@ type Processor interface { Unfave(ctx context.Context, account *gtsmodel.Account, targetStatusID string) (*apimodel.Status, gtserror.WithCode) // Context returns the context (previous and following posts) from the given status ID Context(ctx context.Context, account *gtsmodel.Account, targetStatusID string) (*apimodel.Context, gtserror.WithCode) + // Bookmarks a status + Bookmark(ctx context.Context, account *gtsmodel.Account, targetStatusID string) (*apimodel.Status, gtserror.WithCode) + // Removes a bookmark for a status + Unbookmark(ctx context.Context, account *gtsmodel.Account, targetStatusID string) (*apimodel.Status, gtserror.WithCode) /* PROCESSING UTILS -- cgit v1.2.3