perf: use replaceAll instead of regex
This commit is contained in:
@@ -274,7 +274,7 @@ export class ApRendererService {
|
||||
} as any;
|
||||
|
||||
if (reaction.startsWith(':')) {
|
||||
const name = reaction.replace(/:/g, '');
|
||||
const name = reaction.replaceAll(':', '');
|
||||
const emoji = await this.emojisRepository.findOneBy({
|
||||
name,
|
||||
host: IsNull(),
|
||||
|
Reference in New Issue
Block a user