summaryrefslogtreecommitdiff
path: root/internal/db/mention.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-11-08 14:32:17 +0000
committerLibravatar GitHub <noreply@github.com>2023-11-08 14:32:17 +0000
commite9e5dc5a40926e5320cb131b035c46b1e1b0bd59 (patch)
tree52edc9fa5742f28e1e5223f51cda628ec1c35a24 /internal/db/mention.go
parent[chore]: Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#2338) (diff)
downloadgotosocial-e9e5dc5a40926e5320cb131b035c46b1e1b0bd59.tar.xz
[feature] add support for polls + receiving federated status edits (#2330)
Diffstat (limited to 'internal/db/mention.go')
-rw-r--r--internal/db/mention.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/db/mention.go b/internal/db/mention.go
index d4125031e..994ec04b5 100644
--- a/internal/db/mention.go
+++ b/internal/db/mention.go
@@ -31,6 +31,9 @@ type Mention interface {
// GetMentions gets multiple mentions.
GetMentions(ctx context.Context, ids []string) ([]*gtsmodel.Mention, error)
+ // PopulateMention ensures that all sub-models of a mention are populated (e.g. accounts).
+ PopulateMention(ctx context.Context, mention *gtsmodel.Mention) error
+
// PutMention will insert the given mention into the database.
PutMention(ctx context.Context, mention *gtsmodel.Mention) error