diff options
Diffstat (limited to 'internal/db/status.go')
-rw-r--r-- | internal/db/status.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/status.go b/internal/db/status.go index 16728983a..fdce19094 100644 --- a/internal/db/status.go +++ b/internal/db/status.go @@ -37,6 +37,9 @@ type Status interface { // GetStatusByURL returns one status from the database, with no rel fields populated, only their linking ID / URIs GetStatusByURL(ctx context.Context, uri string) (*gtsmodel.Status, Error) + // PopulateStatus ensures that all sub-models of a status are populated (e.g. mentions, attachments, etc). + PopulateStatus(ctx context.Context, status *gtsmodel.Status) error + // PutStatus stores one status in the database. PutStatus(ctx context.Context, status *gtsmodel.Status) Error |