summaryrefslogtreecommitdiff
path: root/internal/filter
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-04-26 15:03:05 +0200
committerLibravatar GitHub <noreply@github.com>2025-04-26 15:03:05 +0200
commitf7323c065a086533ce8c7f0f0cb3f69a80539992 (patch)
treeba1451f4d1c1841bcc0867599673d9527c31f2bf /internal/filter
parent[performance] rewrite timelines to rely on new timeline cache type (#3941) (diff)
downloadgotosocial-f7323c065a086533ce8c7f0f0cb3f69a80539992.tar.xz
[feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend (#4052)
* [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend * whoops * boop * restore function signature of ExtractAttachments
Diffstat (limited to 'internal/filter')
-rw-r--r--internal/filter/spam/statusable.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/filter/spam/statusable.go b/internal/filter/spam/statusable.go
index 3e9e51697..4fbd6d780 100644
--- a/internal/filter/spam/statusable.go
+++ b/internal/filter/spam/statusable.go
@@ -142,7 +142,14 @@ func (f *Filter) StatusableOK(
}
// HEURISTIC 6: Are there any media attachments?
- attachments, _ := ap.ExtractAttachments(statusable)
+ attachments, err := ap.ExtractAttachments(statusable)
+ if err != nil {
+ log.Warnf(ctx,
+ "error(s) extracting attachments for %s: %v",
+ ap.GetJSONLDId(statusable), err,
+ )
+ }
+
hasAttachments := len(attachments) != 0
if hasAttachments {
err := errors.New("status has attachment(s)")