mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Rename notification.time
This commit is contained in:
@@ -29,7 +29,7 @@ export default class Notification extends Component {
|
||||
{avatar(notification.sender())}
|
||||
{icon(this.icon(), {className: 'Notification-icon'})}
|
||||
<span className="Notification-content">{this.content()}</span>
|
||||
{humanTime(notification.time())}
|
||||
{humanTime(notification.createdAt())}
|
||||
<div className="Notification-excerpt">
|
||||
{this.excerpt()}
|
||||
</div>
|
||||
|
@@ -47,7 +47,7 @@ class NotificationSerializer extends AbstractSerializer
|
||||
'id' => (int) $notification->id,
|
||||
'contentType' => $notification->type,
|
||||
'content' => $notification->data,
|
||||
'time' => $this->formatDate($notification->created_at),
|
||||
'createdAt' => $this->formatDate($notification->created_at),
|
||||
'isRead' => (bool) $notification->read_at
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user