From: Maxim Filippov Date: Thu, 14 Mar 2019 00:17:09 +0000 (+0300) Subject: Ensure empty array is returned for tags X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f3964f4024d5f5c0738e1ca8ce44742330bc0a80;p=akkoma Ensure empty array is returned for tags --- diff --git a/lib/pleroma/web/mastodon_api/views/admin/account_view.ex b/lib/pleroma/web/mastodon_api/views/admin/account_view.ex index efb26be64..787b049a3 100644 --- a/lib/pleroma/web/mastodon_api/views/admin/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/admin/account_view.ex @@ -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