Removed useless stuff

This commit is contained in:
Michael 2019-04-04 14:22:15 +00:00
parent d6578733be
commit b1b5815055
3 changed files with 0 additions and 34 deletions

View file

@ -684,16 +684,7 @@ function twitter_post_hook(App $a, array &$b)
if (!empty($result->errors)) {
Logger::log('Send to Twitter failed: "' . print_r($result->errors, true) . '"');
$r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", intval($b['uid']));
if (DBA::isResult($r)) {
$a->contact = $r[0]["id"];
}
$s = serialize(['url' => $url, 'item' => $b['id'], 'post' => $post]);
Worker::defer();
notice(L10n::t('Twitter post failed. Deferred for retry.') . EOL);
} elseif ($iscomment) {
Logger::log('twitter_post: Update extid ' . $result->id_str . " for post id " . $b['id']);
Item::update(['extid' => "twitter::" . $result->id_str], ['id' => $b['id']]);