From 7c436d0a414ba357f6544114931469f0e7a96bcd 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 adcdd190f8..358fba0f37 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 e5c0a26762..e7937eb6fc 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();