Mastodon API: Fix thread mute detection
It was calling CommonAPI.thread_muted? with post author's account instead of viewer's one.
This commit is contained in:
parent
337edb3e50
commit
0802a08871
3 changed files with 5 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
thread_muted? =
|
||||
case activity.thread_muted? do
|
||||
thread_muted? when is_boolean(thread_muted?) -> thread_muted?
|
||||
nil -> CommonAPI.thread_muted?(user, activity)
|
||||
nil -> (opts[:for] && CommonAPI.thread_muted?(opts[:for], activity)) || false
|
||||
end
|
||||
|
||||
attachment_data = object.data["attachment"] || []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue