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) {
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,
votes: poll?.votes,
expiresAt: poll?.expiresAt,
noteVisibility: note.visibility === "hidden" ? "home" : note.visibility,
noteVisibility:
note.visibility === "hidden" ? "home" : note.visibility,
},
);
updating = true;

View file

@ -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) {

View file

@ -22,8 +22,9 @@
v-if="note.updatedAt"
:time="note.updatedAt"
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>
<MkVisibility :note="note" />

View file

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