From cc91ea057da671ca572b6fae1a65b2acd47b6a66 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sat, 9 Dec 2023 16:54:38 +0100 Subject: [bugfix] Fix web media not showing as sensitive (#2433) * [bugfix] Fix web media not showing as sensitive * test * go fmt --- internal/typeutils/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/typeutils/util.go') diff --git a/internal/typeutils/util.go b/internal/typeutils/util.go index 2eeada868..176b887b3 100644 --- a/internal/typeutils/util.go +++ b/internal/typeutils/util.go @@ -111,11 +111,11 @@ func misskeyReportInlineURLs(content string) []*url.URL { // //

// -func placeholdUnknownAttachments(arr []apimodel.Attachment) (string, []apimodel.Attachment) { +func placeholdUnknownAttachments(arr []*apimodel.Attachment) (string, []*apimodel.Attachment) { // Extract unknown-type attachments into a separate // slice, deleting them from arr in the process. - var unknowns []apimodel.Attachment - arr = slices.DeleteFunc(arr, func(elem apimodel.Attachment) bool { + var unknowns []*apimodel.Attachment + arr = slices.DeleteFunc(arr, func(elem *apimodel.Attachment) bool { unknown := elem.Type == "unknown" if unknown { // Set aside unknown-type attachment. -- cgit v1.2.3