1
0
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:
Toby Zerner
2018-08-24 21:46:28 +09:30
parent 5c0c2d1c40
commit 9792576464
9 changed files with 10 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ class ListNotificationsController extends AbstractListController
* {@inheritdoc}
*/
public $include = [
'sender',
'fromUser',
'subject',
'subject.discussion'
];

View File

@@ -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);
}