Revert "fix incorrect populated object in followers endpoint"
This reverts commit 7b9473bf4c0b55facede0e1d1e33297d14184110.
This commit is contained in:
parent
8f0df1f01c
commit
65d81a4ae2
@ -56,7 +56,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||
.andWhere('following.followeeHost = :host', { host: ps.host });
|
||||
|
||||
if (!await this.roleService.isModerator(me)) {
|
||||
query.leftJoin(MiBlocking, 'blocking', 'blocking."blockerId" = following."followerId" AND blocking."blockeeId" = :me', { me: me.id });
|
||||
query.leftJoin(MiBlocking, 'blocking', 'blocking."blockerId" = following."followeeId" AND blocking."blockeeId" = :me', { me: me.id });
|
||||
query.andWhere('blocking.id IS NULL');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user