Skip to content
Snippets Groups Projects
Commit 5dfade7c authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(interact-as): set actor_id instead of podcast id upon login event

fixes #104
parent 247ae182
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ Events::on('login', function ($user) {
// set interact_as_actor_id value
$userPodcasts = $user->podcasts;
if ($userPodcasts = $user->podcasts) {
set_interact_as_actor($userPodcasts[0]->id);
set_interact_as_actor($userPodcasts[0]->actor_id);
}
});
......@@ -66,7 +66,7 @@ Events::on('logout', function ($user) {
helper('auth');
// remove user's interact_as_actor session
remove_interact_as_actor($user->id);
remove_interact_as_actor();
});
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment