diff options
author | 2023-12-09 16:54:38 +0100 | |
---|---|---|
committer | 2023-12-09 16:54:38 +0100 | |
commit | cc91ea057da671ca572b6fae1a65b2acd47b6a66 (patch) | |
tree | 6c6e1213afa33ada49e1b6cb8286fd959d2b3503 /internal/typeutils/util.go | |
parent | [bugfix] Fix wrong notification type sent for poll end (#2429) (diff) | |
download | gotosocial-cc91ea057da671ca572b6fae1a65b2acd47b6a66.tar.xz |
[bugfix] Fix web media not showing as sensitive (#2433)
* [bugfix] Fix web media not showing as sensitive
* test
* go fmt
Diffstat (limited to 'internal/typeutils/util.go')
-rw-r--r-- | internal/typeutils/util.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 { // </ul> // </p> // </aside> -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. |