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
Pipeline #822 passed with stage
in 8 minutes and 44 seconds
......@@ -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();
});
/*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment