mirror of
https://github.com/flarum/core.git
synced 2025-10-14 08:24:28 +02:00
Rename user.readTime
This commit is contained in:
@@ -67,7 +67,7 @@ Object.assign(Discussion.prototype, {
|
||||
unreadCount() {
|
||||
const user = app.session.user;
|
||||
|
||||
if (user && user.readTime() < this.lastPostedAt()) {
|
||||
if (user && user.markedAllAsReadAt() < this.lastPostedAt()) {
|
||||
return Math.max(0, this.lastPostNumber() - (this.lastReadPostNumber() || 0));
|
||||
}
|
||||
|
||||
|
@@ -21,7 +21,7 @@ Object.assign(User.prototype, {
|
||||
|
||||
joinTime: Model.attribute('joinTime', Model.transformDate),
|
||||
lastSeenAt: Model.attribute('lastSeenAt', Model.transformDate),
|
||||
readTime: Model.attribute('readTime', Model.transformDate),
|
||||
markedAllAsReadAt: Model.attribute('markedAllAsReadAt', Model.transformDate),
|
||||
unreadNotificationsCount: Model.attribute('unreadNotificationsCount'),
|
||||
newNotificationsCount: Model.attribute('newNotificationsCount'),
|
||||
|
||||
|
Reference in New Issue
Block a user