summaryrefslogtreecommitdiff
path: root/internal/message/processor.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-08 15:16:24 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-08 15:16:24 +0200
commit3c539cdfd61d9c0be4817025036347c5f9454747 (patch)
tree4b9a926841ace550f07d915c8db7569fd7d849d2 /internal/message/processor.go
parentAp (#14) (diff)
downloadgotosocial-3c539cdfd61d9c0be4817025036347c5f9454747.tar.xz
status boosts (#16)
Diffstat (limited to 'internal/message/processor.go')
-rw-r--r--internal/message/processor.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/message/processor.go b/internal/message/processor.go
index d0027c915..2126c9597 100644
--- a/internal/message/processor.go
+++ b/internal/message/processor.go
@@ -77,6 +77,8 @@ type Processor interface {
StatusDelete(authed *oauth.Auth, targetStatusID string) (*apimodel.Status, error)
// StatusFave processes the faving of a given status, returning the updated status if the fave goes through.
StatusFave(authed *oauth.Auth, targetStatusID string) (*apimodel.Status, error)
+ // StatusBoost processes the boost/reblog of a given status, returning the newly-created boost if all is well.
+ StatusBoost(authed *oauth.Auth, targetStatusID string) (*apimodel.Status, ErrorWithCode)
// StatusFavedBy returns a slice of accounts that have liked the given status, filtered according to privacy settings.
StatusFavedBy(authed *oauth.Auth, targetStatusID string) ([]*apimodel.Account, error)
// StatusGet gets the given status, taking account of privacy settings and blocks etc.