]> git.mxchange.org Git - friendica-addons.git/commitdiff
Removed useless stuff
authorMichael <heluecht@pirati.ca>
Thu, 4 Apr 2019 14:22:15 +0000 (14:22 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 4 Apr 2019 14:22:15 +0000 (14:22 +0000)
diaspora/diaspora.php
pumpio/pumpio.php
twitter/twitter.php

index d8c634358243cad48fea176dfdb5c577af8fb832..cf272a27b4fc4b68f8414f956a13487800bedcf8 100644 (file)
@@ -397,14 +397,7 @@ function diaspora_send(App $a, array &$b)
 
                        Logger::log('diaspora_send: requeueing '.$b['uid'], Logger::DEBUG);
 
-                       $r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", $b['uid']);
-                       if (count($r))
-                               $a->contact = $r[0]["id"];
-
-                       $s = serialize(['url' => $url, 'item' => $b['id'], 'post' => $body]);
-
                        Worker::defer();
-                       notice(L10n::t('Diaspora post failed. Deferred for retry.').EOL);
                }
        }
 }
index b6716ebc635cc591d9bba81e99a76f43e51f1f7a..6fa2ebf76a59ab17b4537bef8180200c8d2d0b3f 100644 (file)
@@ -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);
        }
 }
 
index 74ebf5fdd069a63d61912bfdd3856e5c13cc7e08..fbe30ce0a3e7806db505248e2098ef4217018eda 100644 (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']]);