mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 02:32:45 +08:00
Rename DiscussionWasTagged user property for consistency
This commit is contained in:
parent
63a4b34d6e
commit
e3278070ac
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user