fix(backend): InstanceEntityService.packMany に me が渡っていないのを修正 (#14360)
* fix: pass current user into `InstanceEntityService.packMany` (cherry picked from commit 858ba188768017764c61c4a5591bdf2524a850e7) * Update Changelog * origin * Update Changelog --------- Co-authored-by: Hazel K <acomputerdog@gmail.com>
This commit is contained in:
		| @@ -170,7 +170,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
|  | ||||
| 			const instances = await query.limit(ps.limit).offset(ps.offset).getMany(); | ||||
|  | ||||
| 			return await this.instanceEntityService.packMany(instances); | ||||
| 			return await this.instanceEntityService.packMany(instances, me); | ||||
| 		}); | ||||
| 	} | ||||
| } | ||||
|   | ||||
| @@ -107,9 +107,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint- | ||||
| 			const gotPubCount = topPubInstances.map(x => x.followingCount).reduce((a, b) => a + b, 0); | ||||
|  | ||||
| 			return await awaitAll({ | ||||
| 				topSubInstances: this.instanceEntityService.packMany(topSubInstances), | ||||
| 				topSubInstances: this.instanceEntityService.packMany(topSubInstances, me), | ||||
| 				otherFollowersCount: Math.max(0, allSubCount - gotSubCount), | ||||
| 				topPubInstances: this.instanceEntityService.packMany(topPubInstances), | ||||
| 				topPubInstances: this.instanceEntityService.packMany(topPubInstances, me), | ||||
| 				otherFollowingCount: Math.max(0, allPubCount - gotPubCount), | ||||
| 			}); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 かっこかり
					かっこかり