Messenger: Do not display the correspondent's login date if it was too long ago

This commit is contained in:
Maxim Leshchenko 2021-12-30 18:53:55 +02:00
parent 6481831aec
commit 85ca646825
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -5,7 +5,7 @@
<a href="/im">{_my_messages}</a> »
<a href="{$correspondent->getURL()}">{$correspondent->getCanonicalName()}</a>
<div n:if="($online = $correspondent->getOnline()->timestamp()) < time() + 2678400" style="float: right;">
<div n:if="($online = $correspondent->getOnline()->timestamp()) + 2505600 > time()" style="float: right;">
{var diff = date_diff(date_create(), date_create('@' . $online))}
{if 5 >= $diff->i}
<span><b>{_online}</b></span>