Commit 6f384d35 authored by kaniini's avatar kaniini
Browse files

ostatus: we need to include the original author of a message as a mention

this is due to the use of activity.recipients which may not necessarily contain the original
author if the actors are not following each other.
parent 591c8262
......@@ -184,7 +184,10 @@ def to_simple_form(%{data: %{"type" => "Announce"}} = activity, user, with_autho
retweeted_xml = to_simple_form(retweeted_activity, retweeted_user, true)
mentions = activity.recipients |> get_mentions
mentions =
([retweeted_user.ap_id] ++ activity.recipients)
|> Enum.uniq()
|> get_mentions()
{:"activity:object-type", ['']},
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment