Added get_stripped_html_for_object. Renamed a few things
[akkoma] / lib / pleroma / web / mastodon_api / views / account_view.ex
index 2762813aeba75ddad75ec749b67069a4c6f1c59a..aaaae20358b0a9d17e75ca2e1d36a8213381b47c 100644 (file)
@@ -1,3 +1,7 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
 defmodule Pleroma.Web.MastodonAPI.AccountView do
   use Pleroma.Web, :view
   alias Pleroma.User
@@ -59,8 +63,12 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
         privacy: user_info.default_scope,
         sensitive: false
       },
+
       # Pleroma extension
-      tags: user.tags
+      pleroma: %{
+        confirmation_pending: user_info.confirmation_pending,
+        tags: user.tags
+      }
     }
   end