Ensure empty array is returned for tags
authorMaxim Filippov <colixer@gmail.com>
Thu, 14 Mar 2019 00:17:09 +0000 (03:17 +0300)
committerMaxim Filippov <colixer@gmail.com>
Thu, 14 Mar 2019 00:17:09 +0000 (03:17 +0300)
lib/pleroma/web/mastodon_api/views/admin/account_view.ex

index efb26be64f81a5e63f553ad07f77a3c4872df226..787b049a30de30bfe4b01f6d3cdf3040050fad42 100644 (file)
@@ -23,7 +23,7 @@ defmodule Pleroma.Web.MastodonAPI.Admin.AccountView do
       "deactivated" => user.info.deactivated,
       "local" => user.local,
       "roles" => Info.roles(user.info),
-      "tags" => user.tags
+      "tags" => user.tags || []
     }
   end
 end