Merge pull request 'Notifications: do not crash on posts without content when filters exist' (#8023) from lambadalambda/pleroma:fix/notification-filter-nil-content into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/8023
This commit is contained in:
lain 2026-10-27 12:36:46 +00:00
commit 539db4b978
3 changed files with 21 additions and 0 deletions

View file

@ -821,6 +821,9 @@ defmodule Pleroma.Notification do
object.data["actor"] == user.ap_id ->
false
not is_binary(object.data["content"]) ->
false
not is_nil(regex = Pleroma.Filter.compose_regex(user, :re)) ->
Regex.match?(regex, object.data["content"])