Commit 9afc6720 authored by lain's avatar lain
Browse files

Quick fix for activities without 'to'.

parent 1e88f102
......@@ -318,7 +318,7 @@ defp activity_to_status(activity, opts) do
actor = get_in(, ["actor"])
user = User.get_cached_by_ap_id(actor)
# mentioned_users = Repo.all(from user in User, where: user.ap_id in ^["to"])
mentioned_users =["to"], fn (ap_id) ->
mentioned_users =["to"] || [], fn (ap_id) ->
|> Enum.filter(&(&1))
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