-
+
({{ i18n.ts.private }})
| null>('currentClip', nul
const note = ref(deepClone(props.note));
+
+const highlightPopularityThreshold = computed(() => {
+ return {
+ highPopularity: instance.highlightHighPopularityThreashold,
+ midPopularity: instance.highlightMidPopularityThreshold,
+ }
+})
// plugin
if (noteViewInterruptors.length > 0) {
onMounted(async () => {
diff --git a/packages/frontend/src/instance.ts b/packages/frontend/src/instance.ts
index 71cb42b30c45..dd72c6fa1fb5 100644
--- a/packages/frontend/src/instance.ts
+++ b/packages/frontend/src/instance.ts
@@ -28,7 +28,13 @@ if (providedAt > cachedAt) {
// TODO: instanceをリアクティブにするかは再考の余地あり
-export const instance: Misskey.entities.MetaDetailed = reactive(cachedMeta ?? {});
+
+type HighlightPopularityThreshold = {
+ highlightMidPopularityThreshold: number;
+ highlightHighPopularityThreashold: number;
+}
+
+export const instance: Misskey.entities.MetaDetailed & HighlightPopularityThreshold = reactive(cachedMeta ?? {});
export const serverErrorImageUrl = computed(() => instance.serverErrorImageUrl ?? DEFAULT_SERVER_ERROR_IMAGE_URL);
diff --git a/packages/frontend/src/pages/admin/settings.vue b/packages/frontend/src/pages/admin/settings.vue
index ea7603a45adb..3a893367cf5b 100644
--- a/packages/frontend/src/pages/admin/settings.vue
+++ b/packages/frontend/src/pages/admin/settings.vue
@@ -249,6 +249,38 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.selectAccount }}
+
+
+ みつける>ハイライトの調整
+
+
+ リアクションしたときに見つける>ハイライトの採用される確率は、大規模サーバーにおいてパフォーマンスへの影響を考慮してデフォルト30%です。(つまり、70%のリアクションはカウントに影響しません)
+
+
+ ハイライトに採用される確率
+
+
+
+
+ ハイライトの青ふぁぼ
+
+
+
+
+ ハイライトの赤ふぁぼ
+
+
+
+
+ ハイライトのから除外する絵文字
+
+
+
+
+
+
+
+
@@ -290,6 +322,10 @@ const infoForm = useForm({
inquiryUrl: meta.inquiryUrl ?? '',
repositoryUrl: meta.repositoryUrl ?? '',
impressumUrl: meta.impressumUrl ?? '',
+ highlightRateFactor: meta.highlightRateFactor ?? 30,
+ highlightMidPopularityThreshold: meta.highlightMidPopularityThreshold ?? 3,
+ highlightHighPopularityThreashold: meta.highlightHighPopularityThreashold ?? 5,
+ highlightExcludeEmojis: meta.highlightExcludeEmojis,
}, async (state) => {
await os.apiWithDialog('admin/update-meta', {
name: state.name,
@@ -302,6 +338,11 @@ const infoForm = useForm({
inquiryUrl: state.inquiryUrl,
repositoryUrl: state.repositoryUrl,
impressumUrl: state.impressumUrl,
+ highlightRateFactor: state.highlightRateFactor,
+ highlightMidPopularityThreshold: state.highlightMidPopularityThreshold,
+ highlightHighPopularityThreashold: state.highlightHighPopularityThreashold ?? 5,
+ highlightExcludeEmojis: state.highlightExcludeEmojis,
+
});
fetchInstance(true);
});
From cacf4771001d6d34c2c6224eed9194ecb8e16cd3 Mon Sep 17 00:00:00 2001
From: FruitRiin
Date: Sat, 16 Nov 2024 15:12:04 +0900
Subject: [PATCH 3/3] fix typo
---
packages/frontend/src/pages/admin/settings.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/frontend/src/pages/admin/settings.vue b/packages/frontend/src/pages/admin/settings.vue
index 3a893367cf5b..ecc2779797f8 100644
--- a/packages/frontend/src/pages/admin/settings.vue
+++ b/packages/frontend/src/pages/admin/settings.vue
@@ -274,7 +274,7 @@ SPDX-License-Identifier: AGPL-3.0-only
ハイライトのから除外する絵文字
-
+