Notification: Fix notifications backfill for compacted activities

This commit is contained in:
lain 2020-06-03 20:51:59 +02:00
parent e213e31577
commit e46aecda55

View File

@ -412,7 +412,7 @@ defp type_from_activity_object(%{data: %{"type" => "Create", "object" => %{}}}),
defp type_from_activity_object(%{data: %{"type" => "Create"}} = activity) do
object = Object.get_by_ap_id(activity.data["object"])
case object.data["type"] do
case object && object.data["type"] do
"ChatMessage" -> "pleroma:chat_mention"
_ -> "mention"
end