fix for pinned users. update changelog (#9159)
This commit is contained in:
		| @@ -43,12 +43,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { | ||||
| 		super(meta, paramDef, async (ps, me) => { | ||||
| 			const meta = await this.metaService.fetch(); | ||||
|  | ||||
| 			const users = await Promise.all(meta.pinnedthis.usersRepository.map(acct => Acct.parse(acct)).map(acct => this.usersRepository.findOneBy({ | ||||
| 			const users = await Promise.all(meta.pinnedUsers.map(acct => Acct.parse(acct)).map(acct => this.usersRepository.findOneBy({ | ||||
| 				usernameLower: acct.username.toLowerCase(), | ||||
| 				host: acct.host ?? IsNull(), | ||||
| 			}))); | ||||
|  | ||||
| 			return await this.userEntityService.packMany(users.filter(x => x !== undefined) as User[], me, { detail: true }); | ||||
| 			return await this.userEntityService.packMany(users.filter(x => x !== null) as User[], me, { detail: true }); | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 squidicuz
					squidicuz