let icon = this.props.community.icon;
return (
<>
- {!this.props.hideAvatar && showAvatars() && icon && (
- <PictrsImage src={icon} icon />
- )}
+ {!this.props.hideAvatar &&
+ !this.props.community.removed &&
+ showAvatars() &&
+ icon && <PictrsImage src={icon} icon />}
<span className="overflow-wrap-anywhere">{displayName}</span>
</>
);
return (
<div>
<h5 className="mb-0">
- {this.props.showIcon && (
+ {this.props.showIcon && !community.removed && (
<BannerIconHeader icon={community.icon} banner={community.banner} />
)}
<span className="mr-2">{community.title}</span>
let avatar = this.props.person.avatar;
return (
<>
- {avatar && !this.props.hideAvatar && showAvatars() && (
- <PictrsImage src={avatar} icon />
- )}
+ {avatar &&
+ !this.props.hideAvatar &&
+ !this.props.person.banned &&
+ showAvatars() && <PictrsImage src={avatar} icon />}
<span>{displayName}</span>
</>
);
return (
pv && (
<div>
- <BannerIconHeader banner={pv.person.banner} icon={pv.person.avatar} />
+ {!isBanned(pv.person) && (
+ <BannerIconHeader
+ banner={pv.person.banner}
+ icon={pv.person.avatar}
+ />
+ )}
<div className="mb-3">
<div className="">
<div className="mb-0 d-flex flex-wrap">