Decrease tag limit
This commit is contained in:
		
							parent
							
								
									bf9da8458c
								
							
						
					
					
						commit
						4dc4ac2f0c
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		|  | @ -134,7 +134,7 @@ export async function createPerson(uri: string, resolver?: Resolver): Promise<Us | ||||||
| 
 | 
 | ||||||
| 	const { fields } = analyzeAttachments(person.attachment || []); | 	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'; | 	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 { 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 = { | 	const updates = { | ||||||
| 		lastFetchedAt: new Date(), | 		lastFetchedAt: new Date(), | ||||||
|  |  | ||||||
|  | @ -257,7 +257,7 @@ export default define(meta, async (ps, user, app) => { | ||||||
| 	if (newDescription != null) { | 	if (newDescription != null) { | ||||||
| 		const tokens = parse(newDescription); | 		const tokens = parse(newDescription); | ||||||
| 		emojis = emojis.concat(extractEmojis(tokens!)); | 		emojis = emojis.concat(extractEmojis(tokens!)); | ||||||
| 		tags = extractHashtags(tokens!).map(tag => tag.toLowerCase()).splice(0, 100); | 		tags = extractHashtags(tokens!).map(tag => tag.toLowerCase()).splice(0, 32); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	updates.emojis = emojis; | 	updates.emojis = emojis; | ||||||
|  |  | ||||||
|  | @ -165,7 +165,7 @@ export default async (user: User, data: Option, silent = false) => new Promise<N | ||||||
| 		mentionedUsers = data.apMentions || await extractMentionedUsers(user, combinedTokens); | 		mentionedUsers = data.apMentions || await extractMentionedUsers(user, combinedTokens); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	tags = tags.filter(tag => Array.from(tag || '').length <= 128).splice(0, 100); | 	tags = tags.filter(tag => Array.from(tag || '').length <= 128).splice(0, 32); | ||||||
| 
 | 
 | ||||||
| 	if (data.reply && (user.id !== data.reply.userId) && !mentionedUsers.some(u => u.id === data.reply!.userId)) { | 	if (data.reply && (user.id !== data.reply.userId) && !mentionedUsers.some(u => u.id === data.reply!.userId)) { | ||||||
| 		mentionedUsers.push(await Users.findOne(data.reply.userId).then(ensure)); | 		mentionedUsers.push(await Users.findOne(data.reply.userId).then(ensure)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue