forked from friendica/friendica-addons
Improved result check
This commit is contained in:
parent
c811f54958
commit
4c3b4dea96
1 changed files with 1 additions and 1 deletions
|
@ -1050,7 +1050,7 @@ function tumblr_get_token(int $uid, string $code = ''): string
|
|||
|
||||
if (empty($refresh_token) && empty($code)) {
|
||||
$result = tumblr_exchange_token($uid);
|
||||
if (empty($result)) {
|
||||
if (empty($result->refresh_token)) {
|
||||
Logger::info('Invalid result while exchanging token', ['uid' => $uid]);
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue