Compare commits

...

4 commits

Author SHA1 Message Date
Dessalines
a63ee58cf8
Merge branch 'main' into default-pfp 2023-06-17 07:57:13 -04:00
SleeplessOne1917
3708d2adf6
Merge branch 'main' into default-pfp 2023-06-17 03:19:36 +00:00
SleeplessOne1917
1676afbf33
Merge branch 'main' into default-pfp 2023-06-17 02:44:08 +00:00
abias
19e599e1de Add default profile picture for users who do not set one 2023-06-16 22:39:38 -04:00
2 changed files with 7 additions and 13 deletions

View file

@ -107,16 +107,6 @@ export class PersonDetails extends Component<PersonDetailsProps, any> {
setupTippy(); setupTippy();
} }
// TODO wut?
// componentDidUpdate(lastProps: UserDetailsProps) {
// for (const key of Object.keys(lastProps)) {
// if (lastProps[key] !== this.props[key]) {
// this.fetchUserData();
// break;
// }
// }
// }
render() { render() {
return ( return (
<div> <div>

View file

@ -73,10 +73,14 @@ export class PersonListing extends Component<PersonListingProps, any> {
const avatar = this.props.person.avatar; const avatar = this.props.person.avatar;
return ( return (
<> <>
{avatar && {!this.props.hideAvatar &&
!this.props.hideAvatar &&
!this.props.person.banned && !this.props.person.banned &&
showAvatars() && <PictrsImage src={avatar} icon />} showAvatars() && (
<PictrsImage
src={avatar ?? "/static/assets/icons/icon-96x96.png"}
icon
/>
)}
<span>{displayName}</span> <span>{displayName}</span>
</> </>
); );