Skip to content

Always uses User Feed when using Model Binding #84

@r0bdiabl0

Description

@r0bdiabl0

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());

$feed = $this->getFeed($this->userFeed, $instance->activityActorId());

$feed = $this->getFeed($this->userFeed, $instance->activityActorId());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions