summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-12 22:16:47 +0100
committerMar0xy <marie@kaifa.ch>2023-11-12 22:16:47 +0100
commit5c38e6b824053a9d94e025f3836557acf8bbebad (patch)
tree28250c087ea73c31b90c71879974e7cd72b2f32c /packages/frontend/src/components/MkNoteSub.vue
parentfix: use a proper function (diff)
downloadsharkey-5c38e6b824053a9d94e025f3836557acf8bbebad.tar.gz
sharkey-5c38e6b824053a9d94e025f3836557acf8bbebad.tar.bz2
sharkey-5c38e6b824053a9d94e025f3836557acf8bbebad.zip
add: custom like emoji per instance, fix like
This fixes the fact that likes on mastodon didn't get federated properly and let's instance admins choose a custom emoji
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index a679d70b85..4cc35f49c6 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -110,6 +110,7 @@ const canRenote = computed(() => ['public', 'home'].includes(props.note.visibili
const props = withDefaults(defineProps<{
note: Misskey.entities.Note;
+ meta: Misskey.entities.LiteInstanceMetadata;
detail?: boolean;
expandAllCws?: boolean;
@@ -218,7 +219,7 @@ function like(): void {
showMovedDialog();
os.api('notes/reactions/create', {
noteId: props.note.id,
- reaction: '❤️',
+ reaction: props.meta.defaultLike,
});
const el = reactButton.value as HTMLElement | null | undefined;
if (el) {