From: Roger Braun Date: Wed, 13 Sep 2017 15:45:59 +0000 (+0200) Subject: Ensure non-null bio. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3184939055fb8c1c9577a9d13e69c2c2f7e070c0;p=akkoma Ensure non-null bio. --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 4f65eb772..22a7dddf8 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -22,7 +22,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do followers_count: user_info.follower_count, following_count: user_info.following_count, statuses_count: user_info.note_count, - note: user.bio, + note: user.bio || "", url: user.ap_id, avatar: image, avatar_static: image,