diff options
author | lain <lain@soykaf.club> | 2020-07-03 13:07:33 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-07-03 13:07:33 +0200 |
commit | 3250228be9719b0afa24c97b64f56d2275c4fe67 (patch) | |
tree | 33ea7f457e06febd5b774b58f1121c47c812dee4 /lib/pleroma/web/mastodon_api | |
parent | 98bfdba108d4213eea82dc4d63edb8bb834118fb (diff) | |
download | pleroma-3250228be9719b0afa24c97b64f56d2275c4fe67.tar.gz |
AccountView: Add 'accepts_chat_messages' to view.
Diffstat (limited to 'lib/pleroma/web/mastodon_api')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index a6e64b4ab..6a643bfcc 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -245,7 +245,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do hide_favorites: user.hide_favorites, relationship: relationship, skip_thread_containment: user.skip_thread_containment, - background_image: image_url(user.background) |> MediaProxy.url() + background_image: image_url(user.background) |> MediaProxy.url(), + accepts_chat_messages: user.accepts_chat_messages } } |> maybe_put_role(user, opts[:for]) |