mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 01:30: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();
|
||||
}
|
||||
|
||||
const iAmModerator = await this.roleService.isModerator(me);
|
||||
|
||||
if (iAmModerator) {
|
||||
if (me != null && me.id === ps.userId) {
|
||||
done();
|
||||
}
|
||||
|
||||
if (
|
||||
(profile.followingVisibility === 'private' || profile.followersVisibility === 'private') &&
|
||||
(me != null && profile.userId === me.id)
|
||||
) {
|
||||
const iAmModerator = await this.roleService.isModerator(me);
|
||||
|
||||
if (iAmModerator) {
|
||||
done();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue