mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Removed useless stuff
This commit is contained in:
parent
d6578733be
commit
b1b5815055
3 changed files with 0 additions and 34 deletions
|
@ -609,16 +609,7 @@ function pumpio_send(App $a, array &$b)
|
|||
}
|
||||
} else {
|
||||
Logger::log('pumpio_send '.$username.': '.$url.' general error: ' . print_r($user, true));
|
||||
|
||||
$r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", $b['uid']);
|
||||
if (DBA::isResult($r)) {
|
||||
$a->contact = $r[0]["id"];
|
||||
}
|
||||
|
||||
$s = serialize(['url' => $url, 'item' => $b['id'], 'post' => $params]);
|
||||
|
||||
Worker::defer();
|
||||
notice(L10n::t('Pump.io post failed. Deferred for retry.').EOL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -686,16 +677,7 @@ function pumpio_action(App $a, $uid, $uri, $action, $content = "")
|
|||
Logger::log('pumpio_action '.$username.' '.$action.': success '.$uri);
|
||||
} else {
|
||||
Logger::log('pumpio_action '.$username.' '.$action.': general error: '.$uri.' '.print_r($user, true));
|
||||
|
||||
$r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", $uid);
|
||||
if (DBA::isResult($r)) {
|
||||
$a->contact = $r[0]["id"];
|
||||
}
|
||||
|
||||
$s = serialize(['url' => $url, 'item' => $orig_post["id"], 'post' => $params]);
|
||||
|
||||
Worker::defer();
|
||||
notice(L10n::t('Pump.io like failed. Deferred for retry.').EOL);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue