This commit is contained in:
syuilo 2021-04-20 00:15:53 +09:00 committed by GitHub
parent e8ada4c8d0
commit b6d0542adf

View File

@ -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 (