mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01:00
Quick fix for activities without 'to'.
This commit is contained in:
parent
1e88f102c4
commit
9afc672009
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
actor = get_in(activity.data, ["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 = Enum.map(activity.data["to"], fn (ap_id) ->
|
||||
mentioned_users = Enum.map(activity.data["to"] || [], fn (ap_id) ->
|
||||
User.get_cached_by_ap_id(ap_id)
|
||||
end)
|
||||
|> Enum.filter(&(&1))
|
||||
|
|
Loading…
Reference in a new issue