From 3184939055fb8c1c9577a9d13e69c2c2f7e070c0 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 13 Sep 2017 17:45:59 +0200 Subject: [PATCH] Ensure non-null bio. --- lib/pleroma/web/mastodon_api/views/account_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,