More unneeded stuff removed

pull/1339/head
Michael 2022-12-21 22:29:38 +00:00
parent d0c44aeaaf
commit 4988d9c49a
1 changed files with 1 additions and 13 deletions

View 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;
}