From 4988d9c49a12f79d592296aabd5a62dd89dfd6eb Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 21 Dec 2022 22:29:38 +0000 Subject: [PATCH] More unneeded stuff removed --- statusnet/statusnet.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 4ae7b86b..74ac36cb 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -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; } -- 2.39.5