mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update ApiV1Controller, fix mute/block entities
This commit is contained in:
parent
20d9f8b890
commit
364adb4387
1 changed files with 4 additions and 2 deletions
|
@ -895,7 +895,8 @@ class ApiV1Controller extends Controller
|
||||||
})
|
})
|
||||||
->filter(function($account) {
|
->filter(function($account) {
|
||||||
return $account && isset($account['id']);
|
return $account && isset($account['id']);
|
||||||
});
|
})
|
||||||
|
->values();
|
||||||
|
|
||||||
return $this->json($blocked);
|
return $this->json($blocked);
|
||||||
}
|
}
|
||||||
|
@ -1757,7 +1758,8 @@ class ApiV1Controller extends Controller
|
||||||
})
|
})
|
||||||
->filter(function($account) {
|
->filter(function($account) {
|
||||||
return $account && isset($account['id']);
|
return $account && isset($account['id']);
|
||||||
});
|
})
|
||||||
|
->values();
|
||||||
|
|
||||||
return $this->json($mutes);
|
return $this->json($mutes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue