Files
devplacepy/devplacepy/templates/_presence_dot.html
T
retoor 0f872336b1 feat: add online presence tracking with last_seen column and configurable timeout
Add `last_seen` column to users table with index, implement `set_last_seen` and `get_online_users` database functions, expose presence config env vars (`PRESENCE_TIMEOUT_SECONDS`, `PRESENCE_ONLINE_LIMIT`, `PRESENCE_ONLINE_MARGIN_SECONDS`), include `last_seen` in follow list responses, and update profile docs to mention online indicator.
2026-07-04 22:08:20 +00:00

2 lines
243 B
HTML

{% if _user and _user.get('uid') %}<span class="presence-dot{% if is_online(_user) %} online{% endif %}" data-presence-uid="{{ _user['uid'] }}" data-presence-last-seen="{{ _user.get('last_seen') or '' }}" aria-hidden="true"></span>{% endif %}