mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	merge: silence linter (!785)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/785 Approved-by: Marie <github@yuugi.dev> Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
		
						commit
						7aba846446
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -588,12 +588,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |||
| 	// `ApRendererService.renderPerson`
 | ||||
| 	private userNeedsPublishing(oldUser: MiLocalUser, newUser: Partial<MiUser>): boolean { | ||||
| 		for (const field of ['avatarId', 'bannerId', 'backgroundId', 'isBot', 'username', 'name', 'isLocked', 'isExplorable', 'isCat', 'noindex', 'speakAsCat', 'movedToUri', 'alsoKnownAs'] as (keyof MiUser)[]) { | ||||
| 			if (newUser.hasOwnProperty(field) && oldUser[field] !== newUser[field]) { | ||||
| 			if ((field in newUser) && oldUser[field] !== newUser[field]) { | ||||
| 				return true; | ||||
| 			} | ||||
| 		} | ||||
| 		for (const arrayField of ['emojis', 'tags'] as (keyof MiUser)[]) { | ||||
| 			if (newUser.hasOwnProperty(arrayField) !== oldUser.hasOwnProperty(arrayField)) { | ||||
| 			if ((arrayField in newUser) !== (arrayField in oldUser)) { | ||||
| 				return true; | ||||
| 			} | ||||
| 
 | ||||
|  | @ -611,12 +611,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | |||
| 
 | ||||
| 	private profileNeedsPublishing(oldProfile: MiUserProfile, newProfile: Partial<MiUserProfile>): boolean { | ||||
| 		for (const field of ['description', 'followedMessage', 'birthday', 'location', 'listenbrainz'] as (keyof MiUserProfile)[]) { | ||||
| 			if (newProfile.hasOwnProperty(field) && oldProfile[field] !== newProfile[field]) { | ||||
| 			if ((field in newProfile) && oldProfile[field] !== newProfile[field]) { | ||||
| 				return true; | ||||
| 			} | ||||
| 		} | ||||
| 		for (const arrayField of ['fields'] as (keyof MiUserProfile)[]) { | ||||
| 			if (newProfile.hasOwnProperty(arrayField) !== oldProfile.hasOwnProperty(arrayField)) { | ||||
| 			if ((arrayField in newProfile) !== (arrayField in oldProfile)) { | ||||
| 				return true; | ||||
| 			} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue