mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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…
Add table
Reference in a new issue