hide blocked&c instances when not logged in - fixes 422
This commit is contained in:
parent
764bbcf05b
commit
bf82942245
2 changed files with 10 additions and 3 deletions
|
@ -100,6 +100,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
default: query.orderBy('instance.id', 'DESC'); break;
|
||||
}
|
||||
|
||||
if (me == null) {
|
||||
ps.blocked = false;
|
||||
ps.suspended = false;
|
||||
ps.silenced = false;
|
||||
}
|
||||
|
||||
if (typeof ps.blocked === 'boolean') {
|
||||
const meta = await this.metaService.fetch(true);
|
||||
if (ps.blocked) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue