mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 17:42:25 -05: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:
parent
b46e5fb65d
commit
79ccd8fd8a
8 changed files with 245 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue