1 import { Person } from "lemmy-js-client";
3 export function isBanned(ps: Person): boolean {
4 const expires = ps.ban_expires;
5 // Add Z to convert from UTC date
6 // TODO this check probably isn't necessary anymore
8 if (ps.banned && new Date(expires + "Z") > new Date()) {