Fix online in messages (#354)

This commit is contained in:
Dmitry 2021-12-18 01:34:24 +07:00 committed by GitHub
parent 8edebcb0d5
commit afa1d7e71c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
<div n:if="($online = $correspondent->getOnline()->timestamp()) < time() + 2678400" style="float: right;">
{var diff = date_diff(date_create(), date_create('@' . $online))}
{if 5 >= $diff->i}
<span><b>Online</b></span>
<span><b>{_online}</b></span>
{else}
<span>{$correspondent->isFemale() ? "заходила" : "заходил"} {$correspondent->getOnline()}</span>
{/if}