Resolve #7149
This commit is contained in:
parent
823a0c86d3
commit
0a64d121d9
10 changed files with 27 additions and 12 deletions
|
@ -15,6 +15,7 @@ import { User } from '../../../../models/entities/user';
|
|||
import { UserProfile } from '../../../../models/entities/user-profile';
|
||||
import { ensure } from '../../../../prelude/ensure';
|
||||
import { notificationTypes } from '../../../../types';
|
||||
import { normalizeForSearch } from '../../../../misc/normalize-for-search';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
|
@ -286,7 +287,7 @@ export default define(meta, async (ps, user, token) => {
|
|||
if (newDescription != null) {
|
||||
const tokens = parse(newDescription);
|
||||
emojis = emojis.concat(extractEmojis(tokens!));
|
||||
tags = extractHashtags(tokens!).map(tag => tag.toLowerCase()).splice(0, 32);
|
||||
tags = extractHashtags(tokens!).map(tag => normalizeForSearch(tag)).splice(0, 32);
|
||||
}
|
||||
|
||||
updates.emojis = emojis;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue