mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
make link detection slightly more performant.
This commit is contained in:
@@ -337,7 +337,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||
this.logger.info(`Creating the Person: ${person.id}`);
|
||||
|
||||
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);
|
||||
|
||||
@@ -566,7 +566,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||
const emojiNames = emojis.map(emoji => emoji.name);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user