From e9e5dc5a40926e5320cb131b035c46b1e1b0bd59 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 8 Nov 2023 14:32:17 +0000 Subject: [feature] add support for polls + receiving federated status edits (#2330) --- internal/db/mention.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/db/mention.go') 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 -- cgit v1.2.3