From 0d84a9fbaff72725c0edcd03a7805cd6bd3fcd31 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 13 Dec 2020 20:42:51 +0000 Subject: [PATCH] Handle "create user" setting --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5