Ensure non-null bio.
authorRoger Braun <rbraun@Bobble.local>
Wed, 13 Sep 2017 15:45:59 +0000 (17:45 +0200)
committerRoger Braun <rbraun@Bobble.local>
Wed, 13 Sep 2017 15:45:59 +0000 (17:45 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex

index 4f65eb772db39d1b7fbbddf2a606af76bc1cbdce..22a7dddf85aa895bdb80982a92ec994f53e7b903 100644 (file)
@@ -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,