1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Fix trivial error in Miniflux

This is not a bug as the behaviour that should have been implemented was
not being relied upon
This commit is contained in:
J. King 2022-04-29 19:04:08 -04:00
parent c6cc2a1a42
commit 300225439c

View file

@ -644,9 +644,10 @@ class V1 extends \JKingWeb\Arsse\REST\AbstractHandler {
*
* - "num": The user's numeric ID,
* - "root": The effective name of the root folder
* - "tz": The time zone preference of the user, or UTC if not set
*/
protected function userMeta(string $user): array {
$meta = Arsse::$user->propertiesGet(Arsse::$user->id, false);
$meta = Arsse::$user->propertiesGet($user, false);
return [
'num' => $meta['num'],
'root' => $meta['root_folder_name'] ?? Arsse::$lang->msg("API.Miniflux.DefaultCategoryName"),