mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 15:46:06 +09:00
fix #7466
This commit is contained in:
parent
e8ada4c8d0
commit
b6d0542adf
@ -147,7 +147,7 @@ export class UserRepository extends Repository<User> {
|
||||
}
|
||||
|
||||
public getOnlineStatus(user: User): string {
|
||||
if (user.hideOnlineStatus == null) return 'unknown';
|
||||
if (user.hideOnlineStatus) return 'unknown';
|
||||
if (user.lastActiveDate == null) return 'unknown';
|
||||
const elapsed = Date.now() - user.lastActiveDate.getTime();
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user