This commit is contained in:
kakkokari-gtyih 2024-10-24 20:29:52 +09:00
parent 2ebf79d855
commit 18380f8e01

View file

@ -60,16 +60,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
done(); done();
} }
const iAmModerator = await this.roleService.isModerator(me); if (me != null && me.id === ps.userId) {
if (iAmModerator) {
done(); done();
} }
if ( const iAmModerator = await this.roleService.isModerator(me);
(profile.followingVisibility === 'private' || profile.followersVisibility === 'private') &&
(me != null && profile.userId === me.id) if (iAmModerator) {
) {
done(); done();
} }