mirror of
https://github.com/decompme/decomp.me.git
synced 2025-12-20 12:29:32 -06:00
only show online marker if user is actually online
This commit is contained in:
@@ -14,6 +14,6 @@ export type Props = {
|
||||
export default function UserAvatar({ user, className }: Props) {
|
||||
return <div className={classNames(styles.avatar, className)}>
|
||||
{!api.isAnonUser(user) && user.avatar_url && <Image src={user.avatar_url} alt="" layout="fill" />}
|
||||
<div className={styles.online} title="Online" />
|
||||
{user.is_online && <div className={styles.online} title="Online" />}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user