From: Michael Date: Sun, 13 Dec 2020 20:42:51 +0000 (+0000) Subject: Handle "create user" setting X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d84a9fbaff72725c0edcd03a7805cd6bd3fcd31;p=friendica-addons.git Handle "create user" setting --- diff --git a/twitter/twitter.php b/twitter/twitter.php index ba9ac287..42986d16 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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; }