forked from YokaiRick/akkoma
Notification: Fix notifications backfill for compacted activities
This commit is contained in:
parent
e213e31577
commit
e46aecda55
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue