chore: format
This commit is contained in:
parent
fe499ccf9d
commit
695cb87052
|
@ -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'`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue