Prevent newly-made unlisted posts from showing in antennas

This commit is contained in:
Freeplay 2023-06-04 17:52:44 -04:00
parent 7b3a3f506a
commit 37156d236f
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();