mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix(backend): isBot not being set on Application type (#12248)
				
					
				
			* fix: bot not being set on all relays * updatePerson missing the change * chore: replace wrong word with correct word
This commit is contained in:
		
							parent
							
								
									c2ddb649f8
								
							
						
					
					
						commit
						2cce28533f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -269,7 +269,7 @@ export class ApPersonService implements OnModuleInit {
 | 
			
		|||
 | 
			
		||||
		const tags = extractApHashtags(person.tag).map(normalizeForSearch).splice(0, 32);
 | 
			
		||||
 | 
			
		||||
		const isBot = getApType(object) === 'Service';
 | 
			
		||||
		const isBot = getApType(object) === 'Service' || getApType(object) === 'Application';
 | 
			
		||||
 | 
			
		||||
		const bday = person['vcard:bday']?.match(/^\d{4}-\d{2}-\d{2}/);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -456,7 +456,7 @@ export class ApPersonService implements OnModuleInit {
 | 
			
		|||
			emojis: emojiNames,
 | 
			
		||||
			name: truncate(person.name, nameLength),
 | 
			
		||||
			tags,
 | 
			
		||||
			isBot: getApType(object) === 'Service',
 | 
			
		||||
			isBot: getApType(object) === 'Service' || getApType(object) === 'Application',
 | 
			
		||||
			isCat: (person as any).isCat === true,
 | 
			
		||||
			isLocked: person.manuallyApprovesFollowers,
 | 
			
		||||
			movedToUri: person.movedTo ?? null,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue