mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	actually publish profile updates with changes to new mk fields
I had forgotten to check these
This commit is contained in:
		
							parent
							
								
									b266a5f9f6
								
							
						
					
					
						commit
						e9f68ab2b0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -621,7 +621,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
 | 
				
			||||||
	// these two methods need to be kept in sync with
 | 
						// these two methods need to be kept in sync with
 | 
				
			||||||
	// `ApRendererService.renderPerson`
 | 
						// `ApRendererService.renderPerson`
 | 
				
			||||||
	private userNeedsPublishing(oldUser: MiLocalUser, newUser: Partial<MiUser>): boolean {
 | 
						private userNeedsPublishing(oldUser: MiLocalUser, newUser: Partial<MiUser>): boolean {
 | 
				
			||||||
		const basicFields: (keyof MiUser)[] = ['avatarId', 'bannerId', 'backgroundId', 'isBot', 'username', 'name', 'isLocked', 'isExplorable', 'isCat', 'noindex', 'speakAsCat', 'movedToUri', 'alsoKnownAs', 'hideOnlineStatus', 'enableRss'];
 | 
							const basicFields: (keyof MiUser)[] = ['avatarId', 'bannerId', 'backgroundId', 'isBot', 'username', 'name', 'isLocked', 'isExplorable', 'isCat', 'noindex', 'speakAsCat', 'movedToUri', 'alsoKnownAs', 'hideOnlineStatus', 'enableRss', 'requireSigninToViewContents', 'makeNotesFollowersOnlyBefore', 'makeNotesHiddenBefore'];
 | 
				
			||||||
		for (const field of basicFields) {
 | 
							for (const field of basicFields) {
 | 
				
			||||||
			if ((field in newUser) && oldUser[field] !== newUser[field]) {
 | 
								if ((field in newUser) && oldUser[field] !== newUser[field]) {
 | 
				
			||||||
				return true;
 | 
									return true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue