diff --git a/src/action/oauth/mastodon.php b/src/action/oauth/mastodon.php index ca20c33..d1fff55 100644 --- a/src/action/oauth/mastodon.php +++ b/src/action/oauth/mastodon.php @@ -55,7 +55,7 @@ else $cookie = hash_hmac('sha256', $auth->access_token.$id_user, 'session'); $sm = $db->prepare('INSERT INTO oauth_tokens (id_user, cookie, access_token, auth_more) VALUES (?, ?, ?, ?)'); try { - $sm->execute([$id_user, $cookie, $auth->access_token, json_encode($payload->result)]); + $sm->execute([$id_user, $cookie, $auth->access_token, json_encode($payload)]); } catch (PDOException $e) { # TODO: log error }