summaryrefslogtreecommitdiff
path: root/internal/db/status.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/status.go')
-rw-r--r--internal/db/status.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/status.go b/internal/db/status.go
index 74eb0d4ff..307d9ea74 100644
--- a/internal/db/status.go
+++ b/internal/db/status.go
@@ -38,6 +38,9 @@ type Status interface {
// PutStatus stores one status in the database.
PutStatus(ctx context.Context, status *gtsmodel.Status) Error
+ // UpdateStatus updates one status in the database and returns it to the caller.
+ UpdateStatus(ctx context.Context, status *gtsmodel.Status) (*gtsmodel.Status, Error)
+
// CountStatusReplies returns the amount of replies recorded for a status, or an error if something goes wrong
CountStatusReplies(ctx context.Context, status *gtsmodel.Status) (int, Error)