Rename DiscussionWasTagged user property for consistency

This commit is contained in:
Toby Zerner 2016-05-28 09:55:45 +09:30
parent 63a4b34d6e
commit e3278070ac
2 changed files with 5 additions and 5 deletions

View File

@ -24,7 +24,7 @@ class DiscussionWasTagged
/**
* @var User
*/
public $user;
public $actor;
/**
* @var array
@ -33,13 +33,13 @@ class DiscussionWasTagged
/**
* @param Discussion $discussion
* @param User $user
* @param User $actor
* @param \Flarum\Tags\Tag[] $oldTags
*/
public function __construct(Discussion $discussion, User $user, array $oldTags)
public function __construct(Discussion $discussion, User $actor, array $oldTags)
{
$this->discussion = $discussion;
$this->user = $user;
$this->actor = $actor;
$this->oldTags = $oldTags;
}
}

View File

@ -42,7 +42,7 @@ class CreatePostWhenTagsAreChanged
{
$post = DiscussionTaggedPost::reply(
$event->discussion->id,
$event->user->id,
$event->actor->id,
array_pluck($event->oldTags, 'id'),
$event->discussion->tags()->lists('id')->all()
);