Filter statuses by full acct with @ symbol
This commit is contained in:
parent
24a78f7740
commit
f83119bfc9
2 changed files with 5 additions and 7 deletions
|
@ -143,15 +143,13 @@ Promoting free speech, even for people and ideas you dislike`;
|
|||
|
||||
const expected = `DMs are definitely only federated to the servers of the recipients tho. So if I DM a kfcc user, the kfcc admins can see it, but no other instance admins can.
|
||||
|
||||
@crunklord420@kiwifarms.cc
|
||||
|
||||
@becassine@kiwifarms.cc
|
||||
|
||||
crunklord420
|
||||
@King_Porgi@poa.st
|
||||
|
||||
becassine
|
||||
|
||||
King_Porgi
|
||||
|
||||
ademan`;
|
||||
@ademan@thebag.social`;
|
||||
|
||||
const result = reducer(undefined, action).getIn(['AHcweewcCh0iPUtMdk', 'search_index']);
|
||||
expect(result).toEqual(expected);
|
||||
|
|
|
@ -60,7 +60,7 @@ const getPollOptionTitles = ({ poll }: StatusRecord): ImmutableList<string> => {
|
|||
|
||||
// Gets usernames of mentioned users from status
|
||||
const getMentionedUsernames = (status: StatusRecord): ImmutableList<string> => {
|
||||
return status.mentions?.map(({ username }: { username: string }) => username);
|
||||
return status.mentions.map(({ acct }) => `@${acct}`);
|
||||
};
|
||||
|
||||
// Creates search text from the status
|
||||
|
|
Loading…
Reference in a new issue