From 695cb870524cf9cdc05c8cfd4361eddfe316b750 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 5 May 2023 13:29:39 -0700 Subject: [PATCH] chore: format --- packages/backend/migration/1682891891317-AddHiddenPosts.js | 4 +++- packages/backend/src/remote/activitypub/models/note.ts | 3 ++- packages/backend/src/services/note/reaction/create.ts | 6 +++++- packages/client/src/components/MkNoteHeader.vue | 5 +++-- packages/client/src/components/MkSignup.vue | 4 +++- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/backend/migration/1682891891317-AddHiddenPosts.js b/packages/backend/migration/1682891891317-AddHiddenPosts.js index 9fbb553b3b..827470f88e 100644 --- a/packages/backend/migration/1682891891317-AddHiddenPosts.js +++ b/packages/backend/migration/1682891891317-AddHiddenPosts.js @@ -8,6 +8,8 @@ export class AddHiddenPosts1682891891317 { } async down(queryRunner) { - await queryRunner.query(`ALTER TYPE note_visibility_enum REMOVE VALUE IF EXISTS 'hidden'`); + await queryRunner.query( + `ALTER TYPE note_visibility_enum REMOVE VALUE IF EXISTS 'hidden'`, + ); } } diff --git a/packages/backend/src/remote/activitypub/models/note.ts b/packages/backend/src/remote/activitypub/models/note.ts index 719feb56f6..f37af6cb4f 100644 --- a/packages/backend/src/remote/activitypub/models/note.ts +++ b/packages/backend/src/remote/activitypub/models/note.ts @@ -704,7 +704,8 @@ export async function updateNote(value: string | IObject, resolver?: Resolver) { multiple: poll?.multiple, votes: poll?.votes, expiresAt: poll?.expiresAt, - noteVisibility: note.visibility === "hidden" ? "home" : note.visibility, + noteVisibility: + note.visibility === "hidden" ? "home" : note.visibility, }, ); updating = true; diff --git a/packages/backend/src/services/note/reaction/create.ts b/packages/backend/src/services/note/reaction/create.ts index 4b9b20ec30..4cf1fd0941 100644 --- a/packages/backend/src/services/note/reaction/create.ts +++ b/packages/backend/src/services/note/reaction/create.ts @@ -144,7 +144,11 @@ export default async ( }); //#region deliver - if (Users.isLocalUser(user) && !note.localOnly && note.visibility !== "hidden") { + if ( + Users.isLocalUser(user) && + !note.localOnly && + note.visibility !== "hidden" + ) { const content = renderActivity(await renderLike(record, note)); const dm = new DeliverManager(user, content); if (note.userHost !== null) { diff --git a/packages/client/src/components/MkNoteHeader.vue b/packages/client/src/components/MkNoteHeader.vue index 740cfc38fa..2834111208 100644 --- a/packages/client/src/components/MkNoteHeader.vue +++ b/packages/client/src/components/MkNoteHeader.vue @@ -22,8 +22,9 @@ v-if="note.updatedAt" :time="note.updatedAt" mode="none" - > ( {{ i18n.ts.edited }}) + ( + {{ i18n.ts.edited }}) diff --git a/packages/client/src/components/MkSignup.vue b/packages/client/src/components/MkSignup.vue index b7ee073cd7..c93e5814ca 100644 --- a/packages/client/src/components/MkSignup.vue +++ b/packages/client/src/components/MkSignup.vue @@ -2,7 +2,9 @@

{{ i18n.ts.signupsDisabled }}

- {{ i18n.ts.findOtherInstance }} + {{ i18n.ts.findOtherInstance }} +