fix(backend): check visibility of following/followers of remote users / feat:...
fix(backend): check visibility of following/followers of remote users / feat: moderators can see following/followers of all users (#14375) * fix(backend): check visibility of following/followers of remote users Resolves https://github.com/misskey-dev/misskey/issues/13362. * test(backend): add tests for visibility of following/followers of remote users * docs(changelog): update CHANGELOG.md * feat: moderators can see following/followers of all users * docs(changelog): update CHANGELOG.md * refactor(backend): minor refactoring `createPerson`と`if`の条件を統一するとともに、異常系の 処理をearly returnに追い出すための変更。 * feat(backend): moderators can see following/followers count of all users As per https://github.com/misskey-dev/misskey/pull/14375#issuecomment-2275044908.
Showing
- CHANGELOG.md 2 additions, 1 deletionCHANGELOG.md
- packages/backend/src/core/activitypub/models/ApPersonService.ts 49 additions, 1 deletion...es/backend/src/core/activitypub/models/ApPersonService.ts
- packages/backend/src/core/activitypub/type.ts 4 additions, 2 deletionspackages/backend/src/core/activitypub/type.ts
- packages/backend/src/core/entities/UserEntityService.ts 2 additions, 2 deletionspackages/backend/src/core/entities/UserEntityService.ts
- packages/backend/src/server/api/endpoints/users/followers.ts 19 additions, 15 deletionspackages/backend/src/server/api/endpoints/users/followers.ts
- packages/backend/src/server/api/endpoints/users/following.ts 19 additions, 15 deletionspackages/backend/src/server/api/endpoints/users/following.ts
- packages/backend/test/unit/activitypub.ts 52 additions, 1 deletionpackages/backend/test/unit/activitypub.ts
- packages/frontend/src/scripts/isFfVisibleForMe.ts 2 additions, 2 deletionspackages/frontend/src/scripts/isFfVisibleForMe.ts
Loading
Please register or sign in to comment