chore: format

This commit is contained in:
ThatOneCalculator 2023-05-05 13:29:39 -07:00
parent fe499ccf9d
commit 695cb87052
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
5 changed files with 16 additions and 6 deletions

View File

@ -8,6 +8,8 @@ export class AddHiddenPosts1682891891317 {
} }
async down(queryRunner) { 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'`,
);
} }
} }

View File

@ -704,7 +704,8 @@ export async function updateNote(value: string | IObject, resolver?: Resolver) {
multiple: poll?.multiple, multiple: poll?.multiple,
votes: poll?.votes, votes: poll?.votes,
expiresAt: poll?.expiresAt, expiresAt: poll?.expiresAt,
noteVisibility: note.visibility === "hidden" ? "home" : note.visibility, noteVisibility:
note.visibility === "hidden" ? "home" : note.visibility,
}, },
); );
updating = true; updating = true;

View File

@ -144,7 +144,11 @@ export default async (
}); });
//#region deliver //#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 content = renderActivity(await renderLike(record, note));
const dm = new DeliverManager(user, content); const dm = new DeliverManager(user, content);
if (note.userHost !== null) { if (note.userHost !== null) {

View File

@ -22,8 +22,9 @@
v-if="note.updatedAt" v-if="note.updatedAt"
:time="note.updatedAt" :time="note.updatedAt"
mode="none" mode="none"
> (<i class="ph-pencil-line ph-bold"></i >
> {{ i18n.ts.edited }})</MkTime (<i class="ph-pencil-line ph-bold"></i>
{{ i18n.ts.edited }})</MkTime
> >
</MkA> </MkA>
<MkVisibility :note="note" /> <MkVisibility :note="note" />

View File

@ -2,7 +2,9 @@
<div v-if="instance.disableRegistration" style="margin-bottom: 1rem"> <div v-if="instance.disableRegistration" style="margin-bottom: 1rem">
<p>{{ i18n.ts.signupsDisabled }}</p> <p>{{ i18n.ts.signupsDisabled }}</p>
<a href="https://calckey.org/join"> <a href="https://calckey.org/join">
<MkButton rounded gradate>{{ i18n.ts.findOtherInstance }} </MkButton> <MkButton rounded gradate
>{{ i18n.ts.findOtherInstance }}
</MkButton>
</a> </a>
</div> </div>
<form <form