"who" heas read a thread
-
We keep track of how far a user read a topic in the key
tid:<tid>:bookmarks
, it only starts tracking after a certain amount of posts which you can configure in the ACP at /admin/settings/post. It is calledMinimum posts in topic before tracking last read
-
We don't have an api end point that exposes that data. There are two keys that can be used for this.
tid:<tid>:bookmarks
stores the last index the user has read in a topic.
uid:<uid>:tids_read
stores a timestamp & topic id for the topics the user has read. -
@baris i take your plugin "browsing-users" and create a new one "who-read-it". I hope it is okay for you
currently it looks like this:
the timestamp i like to have in the tooltip behind the username, but i dont know who, maybe you have a idea?
<div component="topic/who-read-it" class="d-flex gap-1"> <i class="fa fa-check fa-fw" title="Who Read It"></i> <br> {{{ each whoreadit }}} <div data-uid="{./uid}"> <a class="text-decoration-none" href="{{{ if ./userslug }}}{config.relative_path}/user/{./userslug}{{{ else }}}#{{{ end }}}"> {buildAvatar(whoreadit, "24px", true, "avatar-tooltip","title=test")}{./readtimestamp} </a> </div> {{{ end }}} </div>