chore: replace icons, change errors

This commit is contained in:
Mar0xy 2023-11-23 19:22:34 +01:00
parent 42bf8e5e76
commit 04dbf7ebe9
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
4 changed files with 4 additions and 4 deletions

View file

@ -283,7 +283,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // 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

View file

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

View file

@ -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();
},

View file

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