From 04dbf7ebe9fd868c0aa4b0cffb91cdbfa8d95128 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Thu, 23 Nov 2023 19:22:34 +0100 Subject: [PATCH] chore: replace icons, change errors --- packages/backend/src/server/api/endpoints/notes/create.ts | 2 +- .../frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts | 2 +- packages/frontend/src/pages/admin/index.vue | 2 +- packages/frontend/src/ui/deck/column.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index 513b77b98..49287f4de 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -283,7 +283,7 @@ export default class extends Endpoint { // eslint- } else if (isPureRenote(reply)) { throw new ApiError(meta.errors.cannotReplyToPureRenote); } else if (!await this.noteEntityService.isVisibleForMe(reply, me.id)) { - throw new ApiError(meta.errors.cannotReplyToInvisibleNote); + throw new ApiError(meta.errors.noSuchReplyTarget); } // Check blocking diff --git a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts index c2e36f58b..7d55353d9 100644 --- a/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts +++ b/packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts @@ -258,7 +258,7 @@ export default function(props: MfmProps) { style: 'display: inline-block; font-size: 90%; border: solid 1px var(--divider); border-radius: 999px; padding: 4px 10px 4px 6px;', }, [ h('i', { - class: 'ti ti-clock', + class: 'ph-clock ph-bold ph-lg', style: 'margin-right: 0.25em;', }), h(MkTime, { diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index ae6214540..cf62767f0 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -302,7 +302,7 @@ function lookup(ev: MouseEvent) { }, }, { text: `${i18n.ts.user} (${i18n.ts.email})`, - icon: 'ti ti-user', + icon: 'ph-user ph-bold ph-lg', action: () => { lookupUserByEmail(); }, diff --git a/packages/frontend/src/ui/deck/column.vue b/packages/frontend/src/ui/deck/column.vue index 6e626da11..09e91360b 100644 --- a/packages/frontend/src/ui/deck/column.vue +++ b/packages/frontend/src/ui/deck/column.vue @@ -186,7 +186,7 @@ function getMenu() { if (props.refresher) { items = [{ - icon: 'ti ti-refresh', + icon: 'ph-arrows-counter-clockwise ph-bold ph-lg', text: i18n.ts.reload, action: () => { if (props.refresher) {