From a314d2b539804a31e602774196676e2d0089b8dc Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 19 Feb 2024 04:48:20 +0100 Subject: [bugfix] Refactor parse mention, fix local mention bug (#2657) * [bugfix] Refactor parse mention, fix local mention bug * originAccount -> originAcct --- internal/gtsmodel/mention.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/gtsmodel/mention.go') diff --git a/internal/gtsmodel/mention.go b/internal/gtsmodel/mention.go index fb7f3b51a..7d5516a9f 100644 --- a/internal/gtsmodel/mention.go +++ b/internal/gtsmodel/mention.go @@ -60,7 +60,7 @@ type Mention struct { // A pointer to the gtsmodel account of the mentioned account. } -// ParseMentionFunc describes a function that takes a lowercase account name +// ParseMentionFunc describes a function that takes a lowercase account namestring // in the form "@test@whatever.example.org" for a remote account, or "@test" // for a local account, and returns a fully populated mention for that account, // with the given origin status ID and origin account ID. @@ -70,4 +70,4 @@ type Mention struct { // // Mentions generated by this function are not put in the database, that's still up to // the caller to do. -type ParseMentionFunc func(ctx context.Context, targetAccount string, originAccountID string, statusID string) (*Mention, error) +type ParseMentionFunc func(ctx context.Context, namestring string, originAccountID string, statusID string) (*Mention, error) -- cgit v1.2.3