From 37156d236fb80bd768689052a1d41927300606c3 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 4 Jun 2023 17:52:44 -0400 Subject: [PATCH] Prevent newly-made unlisted posts from showing in antennas --- packages/backend/src/misc/check-hit-antenna.ts | 1 + packages/client/src/ui/_common_/navbar.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/misc/check-hit-antenna.ts b/packages/backend/src/misc/check-hit-antenna.ts index adcdd190f..358fba0f3 100644 --- a/packages/backend/src/misc/check-hit-antenna.ts +++ b/packages/backend/src/misc/check-hit-antenna.ts @@ -26,6 +26,7 @@ export async function checkHitAntenna( antennaUserFollowing?: User["id"][], ): Promise { if (note.visibility === "specified") return false; + if (note.visibility === "home") return false; // アンテナ作成者がノート作成者にブロックされていたらスキップ const blockings = await blockingCache.fetch(noteUser.id, () => diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index e5c0a2676..e7937eb6f 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -177,7 +177,7 @@ const calcViewState = () => { calcViewState(); -window.addEventListener("resize", calcViewState); +matchMedia("(max-width: 1279px)").onchange = (mql) => calcViewState(); watch(defaultStore.reactiveState.menuDisplay, () => { calcViewState();