Limit the tag counts to 100 (#5263)
* Limit the tag counts to 256 * Update create.ts * Update create.ts * Update create.ts * Limit the user tag
This commit is contained in:
committed by
syuilo
parent
1832b2e53c
commit
bf9da8458c
@ -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());
|
||||
const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 100);
|
||||
|
||||
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());
|
||||
const tags = extractHashtags(person.tag).map(tag => tag.toLowerCase()).splice(0, 100);
|
||||
|
||||
const updates = {
|
||||
lastFetchedAt: new Date(),
|
||||
|
Reference in New Issue
Block a user