From 282f07dd72a260fbb339308aec03d72dfbce62d4 Mon Sep 17 00:00:00 2001 From: Kaity A Date: Sun, 7 May 2023 11:52:18 +1000 Subject: [PATCH] pnpm format --- .../src/remote/activitypub/renderer/note.ts | 2 +- packages/backend/src/services/note/create.ts | 3 +- .../src/services/note/reaction/create.ts | 5 +- packages/client/src/components/MkMenu.vue | 46 +++++++++++++------ .../client/src/components/MkPopupMenu.vue | 15 +++--- .../client/src/components/MkRenoteButton.vue | 12 +++-- .../src/components/MkSubNoteContent.vue | 6 ++- packages/client/src/os.ts | 9 +++- packages/client/src/types/menu.ts | 7 ++- 9 files changed, 69 insertions(+), 36 deletions(-) diff --git a/packages/backend/src/remote/activitypub/renderer/note.ts b/packages/backend/src/remote/activitypub/renderer/note.ts index 5fe59b3ab7..280205eaf8 100644 --- a/packages/backend/src/remote/activitypub/renderer/note.ts +++ b/packages/backend/src/remote/activitypub/renderer/note.ts @@ -16,7 +16,7 @@ export default async function renderNote( dive = true, isTalk = false, ): Promise> { - note.visibility = note.visibility === "hidden" ? "home" : note.visibility; + note.visibility = note.visibility === "hidden" ? "home" : note.visibility; const getPromisedFiles = async (ids: string[]) => { if (!ids || ids.length === 0) return []; const items = await DriveFiles.findBy({ id: In(ids) }); diff --git a/packages/backend/src/services/note/create.ts b/packages/backend/src/services/note/create.ts index 2a7b00b0fb..721147dd6b 100644 --- a/packages/backend/src/services/note/create.ts +++ b/packages/backend/src/services/note/create.ts @@ -606,8 +606,7 @@ export default async ( }); async function renderNoteOrRenoteActivity(data: Option, note: Note) { - if (data.localOnly || - note.visibility !== "hidden") return null; + if (data.localOnly || note.visibility !== "hidden") return null; const content = data.renote && diff --git a/packages/backend/src/services/note/reaction/create.ts b/packages/backend/src/services/note/reaction/create.ts index 9f4ed1375b..277393eb41 100644 --- a/packages/backend/src/services/note/reaction/create.ts +++ b/packages/backend/src/services/note/reaction/create.ts @@ -144,10 +144,7 @@ export default async ( }); //#region deliver - if ( - Users.isLocalUser(user) && - !note.localOnly - ) { + if (Users.isLocalUser(user) && !note.localOnly) { const content = renderActivity(await renderLike(record, note)); const dm = new DeliverManager(user, content); if (note.userHost !== null) { diff --git a/packages/client/src/components/MkMenu.vue b/packages/client/src/components/MkMenu.vue index 161a7a59a9..6279331778 100644 --- a/packages/client/src/components/MkMenu.vue +++ b/packages/client/src/components/MkMenu.vue @@ -13,7 +13,12 @@ >