mirror of
https://github.com/flarum/core.git
synced 2025-10-12 23:44:27 +02:00
Rename notification.sender
This commit is contained in:
@@ -30,7 +30,7 @@ class ListNotificationsController extends AbstractListController
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public $include = [
|
||||
'sender',
|
||||
'fromUser',
|
||||
'subject',
|
||||
'subject.discussion'
|
||||
];
|
||||
|
@@ -65,7 +65,7 @@ class NotificationSerializer extends AbstractSerializer
|
||||
* @param Notification $notification
|
||||
* @return \Tobscure\JsonApi\Relationship
|
||||
*/
|
||||
protected function sender($notification)
|
||||
protected function fromUser($notification)
|
||||
{
|
||||
return $this->hasOne($notification, BasicUserSerializer::class);
|
||||
}
|
||||
|
Reference in New Issue
Block a user