diff options
author | lain <lain@soykaf.club> | 2020-06-03 20:51:59 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-03 20:51:59 +0200 |
commit | e46aecda55b20c0d48463fb2a5c0040d4fc34e97 (patch) | |
tree | 11ded7c1fbc1ed2867fea66684c1e1c1c4914ce6 | |
parent | e213e3157737f87513999ef2aa00dffa735a8ada (diff) | |
download | pleroma-e46aecda55b20c0d48463fb2a5c0040d4fc34e97.tar.gz |
Notification: Fix notifications backfill for compacted activities
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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 |