diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-27 05:18:09 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-27 05:18:09 +0900 |
| commit | 4dc4ac2f0c7bcc4f6c2dfed65c69b28ce6ca23fd (patch) | |
| tree | 55b155bbe8db71afbae0aadaf3798a8f4d5692b3 /src/remote/activitypub | |
| parent | Limit the tag counts to 100 (#5263) (diff) | |
| download | sharkey-4dc4ac2f0c7bcc4f6c2dfed65c69b28ce6ca23fd.tar.gz sharkey-4dc4ac2f0c7bcc4f6c2dfed65c69b28ce6ca23fd.tar.bz2 sharkey-4dc4ac2f0c7bcc4f6c2dfed65c69b28ce6ca23fd.zip | |
Decrease tag limit
Diffstat (limited to 'src/remote/activitypub')
| -rw-r--r-- | src/remote/activitypub/models/person.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/models/person.ts b/src/remote/activitypub/models/person.ts index 1c674729cb..9bf6c7cb1e 100644 --- a/src/remote/activitypub/models/person.ts +++ b/src/remote/activitypub/models/person.ts @@ -134,7 +134,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us const { fields } = analyzeAttachments(person.attachment || []); - const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 100); + const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 32); const isBot = object.type == 'Service'; @@ -307,7 +307,7 @@ export async function updatePerson(uri: string, resolver?: Resolver | null, hint const { fields, services } = analyzeAttachments(person.attachment || []); - const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 100); + const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 32); const updates = { lastFetchedAt: new Date(), |