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
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ defmodule Pleroma.Notification do
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