mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 20:16:57 +00:00
make link detection slightly more performant.
This commit is contained in:
parent
8a60c7df02
commit
1d9876d3fa
1 changed files with 2 additions and 2 deletions
|
@ -337,7 +337,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||||
this.logger.info(`Creating the Person: ${person.id}`);
|
this.logger.info(`Creating the Person: ${person.id}`);
|
||||||
|
|
||||||
const fields = this.analyzeAttachments(person.attachment ?? []);
|
const fields = this.analyzeAttachments(person.attachment ?? []);
|
||||||
const field_urls = fields.filter(x => x.value.includes('https://'));
|
const field_urls = fields.filter(x => x.value.startsWith('https://'));
|
||||||
|
|
||||||
const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32);
|
const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32);
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||||
const emojiNames = emojis.map(emoji => emoji.name);
|
const emojiNames = emojis.map(emoji => emoji.name);
|
||||||
|
|
||||||
const fields = this.analyzeAttachments(person.attachment ?? []);
|
const fields = this.analyzeAttachments(person.attachment ?? []);
|
||||||
const field_urls = fields.filter(x => x.value.includes('https://'));
|
const field_urls = fields.filter(x => x.value.startsWith('https://'));
|
||||||
|
|
||||||
const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32);
|
const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue