stream-laravel
stream-laravel copied to clipboard
Always uses User Feed when using Model Binding
The following lines of code do not allow you to use different actors aside from users using the user_feed as the following function is hard coded to use the user feed:
$this->userFeed = $this->config->get("stream-laravel::user_feed");
....
$feed = $this->getFeed($this->userFeed, $instance->activityActorId());
It should change based on if you set the following in the model:
public function activityActorMethodName()
{
return 'group';
}
The code should read like this instead:
$feed = $this->getFeed($instance->activityActorMethodName(), $instance->activityActorId());
https://github.com/GetStream/stream-laravel/blob/700f50edc8fa42f6324559bac9ecb67ce5409da7/src/GetStream/StreamLaravel/StreamLaravelManager.php#L126
https://github.com/GetStream/stream-laravel/blob/700f50edc8fa42f6324559bac9ecb67ce5409da7/src/GetStream/StreamLaravel/StreamLaravelManager.php#L133