diff options
author | Martin Kühl <martin.kuehl@gmail.com> | 2018-09-05 20:13:50 +0200 |
---|---|---|
committer | Martin Kühl <martin.kuehl@gmail.com> | 2018-09-07 16:12:44 +0200 |
commit | 619f67768a9b66880d8541c03e640201bc378c99 (patch) | |
tree | 01a435c560675263ca00e2e839be3178b5c551d2 /lib | |
parent | 403f9d118dadcef806044831221d5c67800ce34d (diff) | |
download | pleroma-619f67768a9b66880d8541c03e640201bc378c99.tar.gz |
Mastodon API: Add unsupported attributes to relationship responses
These attributes are documented as required by the Mastodon API.
Since we don’t support them (I think?), respond with default values.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/account_view.ex | 4 |
1 files changed, 3 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 e206e6486..7915933be 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -75,8 +75,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do followed_by: User.following?(target, user), blocking: User.blocks?(user, target), muting: false, + muting_notifications: false, requested: false, - domain_blocking: false + domain_blocking: false, + showing_reblogs: false } end |