1 import { MyUserInfo, PostView } from "lemmy-js-client";
2 import { UserService } from "../../services";
4 export default function isPostBlocked(
6 myUserInfo: MyUserInfo | undefined = UserService.Instance.myUserInfo,
9 (myUserInfo?.community_blocks
10 .map(c => c.community.id)
11 .includes(pv.community.id) ||
12 myUserInfo?.person_blocks
13 .map(p => p.target.id)
14 .includes(pv.creator.id)) ??