aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-02-27 16:46:47 +0100
committerlain <lain@soykaf.club>2019-02-27 16:46:47 +0100
commitc1ae495878cc95d09a051cc56e2bf7dc7ed0a032 (patch)
treebe4bd948be6a8d0fdac6ba349a35671eae0d6f9d /lib/pleroma/web
parentc4235f96bde49def1fb6927ba79a49a0f75cd60a (diff)
downloadpleroma-c1ae495878cc95d09a051cc56e2bf7dc7ed0a032.tar.gz
Add user muted status info to MastodonAPI.
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index b90e4252a..3468c0e1c 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -168,7 +168,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
reblogged: present?(repeated),
favourited: present?(favorited),
bookmarked: present?(bookmarked),
- muted: CommonAPI.thread_muted?(user, activity),
+ muted: CommonAPI.thread_muted?(user, activity) || User.mutes?(opts[:for], user),
pinned: pinned?(activity, user),
sensitive: sensitive,
spoiler_text: object["summary"] || "",