From 0f3117fca2367156b3a5f9102c5ddf1266414e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9l=C3=A8ne?= Date: Fri, 19 Aug 2022 17:58:33 +0200 Subject: [PATCH] renderer/Document: default to filename Filenames will now be used if the DriveFile instance of the attachment has no comment set. --- packages/backend/src/remote/activitypub/renderer/document.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/remote/activitypub/renderer/document.ts b/packages/backend/src/remote/activitypub/renderer/document.ts index c973de4c4..da78a26cf 100644 --- a/packages/backend/src/remote/activitypub/renderer/document.ts +++ b/packages/backend/src/remote/activitypub/renderer/document.ts @@ -5,5 +5,5 @@ export default (file: DriveFile) => ({ type: 'Document', mediaType: file.type, url: DriveFiles.getPublicUrl(file), - name: file.comment, + name: file.comment || file.name, }); -- 2.43.0