GNU-Social import is removed #1339

Merged
annando merged 3 commits from no-gs-import into develop 2022-12-21 23:53:13 +01:00
Showing only changes of commit 4988d9c49a - Show all commits

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