diff options
author | 2024-02-19 04:48:20 +0100 | |
---|---|---|
committer | 2024-02-19 03:48:20 +0000 | |
commit | a314d2b539804a31e602774196676e2d0089b8dc (patch) | |
tree | 9b68bb5176cf2b8f7909bf0fa02117f8c270d9b9 /internal/gtsmodel/mention.go | |
parent | [chore] Comment out silly, frequently-failing `GetStatusTwice` test (#2656) (diff) | |
download | gotosocial-a314d2b539804a31e602774196676e2d0089b8dc.tar.xz |
[bugfix] Refactor parse mention, fix local mention bug (#2657)
* [bugfix] Refactor parse mention, fix local mention bug
* originAccount -> originAcct
Diffstat (limited to 'internal/gtsmodel/mention.go')
-rw-r--r-- | internal/gtsmodel/mention.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |