mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 16:38:23 +01:00
refactor
This commit is contained in:
parent
2ebf79d855
commit
18380f8e01
1 changed files with 4 additions and 7 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue