diff --git a/locales/en-US.yml b/locales/en-US.yml index 8da0af981f..1ade50c7f2 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -886,6 +886,7 @@ global: "Global" recommended: "Recommended" squareAvatars: "Display squared avatars" seperateRenoteQuote: "Separate boost and quote buttons" +highlightCw: "Highlight content warned posts" sent: "Sent" received: "Received" searchResult: "Search results" 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 e47f32e45d..6279331778 100644 --- a/packages/client/src/components/MkMenu.vue +++ b/packages/client/src/components/MkMenu.vue @@ -13,6 +13,12 @@ >