mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Removed useless stuff
This commit is contained in:
parent
d6578733be
commit
b1b5815055
3 changed files with 0 additions and 34 deletions
|
@ -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']]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue