summaryrefslogtreecommitdiff
path: root/internal/typeutils/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/typeutils/util.go')
-rw-r--r--internal/typeutils/util.go6
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.