]> git.mxchange.org Git - friendica-addons.git/commitdiff
More unneeded stuff removed
authorMichael <heluecht@pirati.ca>
Wed, 21 Dec 2022 22:29:38 +0000 (22:29 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 21 Dec 2022 22:29:38 +0000 (22:29 +0000)
statusnet/statusnet.php

index 4ae7b86b2f6968736e0c86131d2eb80eb61560a5..74ac36cb7ae037e2746d3464df0da7920faa325f 100644 (file)
@@ -296,19 +296,7 @@ function statusnet_hook_fork(App $a, array &$b)
 
        $post = $b['data'];
 
-       // Deleting and editing is not supported by the addon
-       if ($post['deleted'] || ($post['created'] !== $post['edited'])) {
-               $b['execute'] = false;
-               return;
-       }
-
-       if ($post['app'] == 'StatusNet') {
-               $b['execute'] = false;
-               return;
-       }
-
-       // Comments are never exported when we don't import the GNU Social timeline
-       if (strpos($post['postopts'] ?? '', 'statusnet') === false || ($post['parent'] != $post['id']) || $post['private']) {
+       if ($post['deleted'] || ($post['created'] !== $post['edited']) || strpos($post['postopts'] ?? '', 'statusnet') === false || ($post['parent'] != $post['id']) || $post['private']) {
                $b['execute'] = false;
                return;
        }