More TwAPI fixes.

This commit is contained in:
lain 2018-02-21 10:31:13 +01:00
parent 92021fd00c
commit 947ba6495d
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ defp activity_to_status(activity, opts) do
actor = get_in(activity.data, ["actor"]) actor = get_in(activity.data, ["actor"])
user = User.get_cached_by_ap_id(actor) user = User.get_cached_by_ap_id(actor)
# mentioned_users = Repo.all(from user in User, where: user.ap_id in ^activity.data["to"]) # mentioned_users = Repo.all(from user in User, where: user.ap_id in ^activity.data["to"])
mentioned_users = Enum.map(activity.data["to"] || [], fn (ap_id) -> mentioned_users = Enum.map(activity.recipients || [], fn (ap_id) ->
if ap_id do if ap_id do
User.get_cached_by_ap_id(ap_id) User.get_cached_by_ap_id(ap_id)
else else