]> git.mxchange.org Git - friendica-addons.git/commitdiff
Handle "create user" setting
authorMichael <heluecht@pirati.ca>
Sun, 13 Dec 2020 20:42:51 +0000 (20:42 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 13 Dec 2020 20:42:51 +0000 (20:42 +0000)
twitter/twitter.php

index ba9ac287b197af0bf0ab4d1162334efdf833fc5a..42986d162d1fd23a3d64e77ce956a5a59f24a43b 100644 (file)
@@ -1245,7 +1245,7 @@ function twitter_fetch_contact($uid, $data, $create_user)
        if (!DBA::isResult($contact) && empty($cid)) {
                Logger::warning('User contact not found', ['uid' => $uid, 'twitter-id' => $data->id_str]);
                return 0;
-       } else {
+       } elseif (!$create_user) {
                return $cid;
        }