Prevent newly-made unlisted posts from showing in antennas

This commit is contained in:
Freeplay 2023-06-04 17:52:44 -04:00
parent b0cd3b25fc
commit 7c436d0a41
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ export async function checkHitAntenna(
antennaUserFollowing?: User["id"][],
): Promise<boolean> {
if (note.visibility === "specified") return false;
if (note.visibility === "home") return false;
// アンテナ作成者がノート作成者にブロックされていたらスキップ
const blockings = await blockingCache.fetch(noteUser.id, () =>

View file

@ -177,7 +177,7 @@ const calcViewState = () => {
calcViewState();
window.addEventListener("resize", calcViewState);
matchMedia("(max-width: 1279px)").onchange = (mql) => calcViewState();
watch(defaultStore.reactiveState.menuDisplay, () => {
calcViewState();