1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 15:07:53 +02:00

Rename discussion.readTime

This commit is contained in:
Toby Zerner
2018-08-24 20:51:58 +09:30
parent dc4e650091
commit d031fc76bd
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ Object.assign(Discussion.prototype, {
posts: Model.hasMany('posts'),
mostRelevantPost: Model.hasOne('mostRelevantPost'),
readTime: Model.attribute('readTime', Model.transformDate),
lastReadAt: Model.attribute('lastReadAt', Model.transformDate),
readNumber: Model.attribute('readNumber'),
isUnread: computed('unreadCount', unreadCount => !!unreadCount),
isRead: computed('unreadCount', unreadCount => app.session.user && !unreadCount),