From: lain Date: Wed, 3 Jun 2020 18:51:59 +0000 (+0200) Subject: Notification: Fix notifications backfill for compacted activities X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=e46aecda55b20c0d48463fb2a5c0040d4fc34e97;p=akkoma Notification: Fix notifications backfill for compacted activities --- diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 0f33d282d..455d214bf 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -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