mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
Fix mentioned accounts visibility bug (#323)
* update other tests * set test status to followers_only * add test dm * fix mentioned accounts not being added to relevantAccounts * add some visibility tests for statuses
This commit is contained in:
@@ -134,6 +134,7 @@ func (f *filter) relevantAccounts(ctx context.Context, status *gtsmodel.Status,
|
||||
}
|
||||
if mentionIn(m, status.MentionIDs) {
|
||||
nm = append(nm, m)
|
||||
relAccts.MentionedAccounts = append(relAccts.MentionedAccounts, m.TargetAccount)
|
||||
}
|
||||
}
|
||||
status.Mentions = nm
|
||||
|
Reference in New Issue
Block a user