mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
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.
This commit is contained in:
parent
591c82620e
commit
6f384d35dd
|
@ -184,7 +184,10 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
|
|||
|
||||
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", ['http://activitystrea.ms/schema/1.0/activity']},
|
||||
|
|
Loading…
Reference in a new issue