"Post" classes are now used instead of "Item"

This commit is contained in:
Michael 2021-01-19 09:14:14 +00:00
parent 1533d9a758
commit b4644212d4
3 changed files with 15 additions and 15 deletions

View file

@ -403,7 +403,7 @@ function statusnet_hook_fork(App $a, array &$b)
if (DI::pConfig()->get($post['uid'], 'statusnet', 'import')) {
// Don't fork if it isn't a reply to a GNU Social post
if (($post['parent'] != $post['id']) && !Item::exists(['id' => $post['parent'], 'network' => Protocol::STATUSNET])) {
if (($post['parent'] != $post['id']) && !Post::exists(['id' => $post['parent'], 'network' => Protocol::STATUSNET])) {
Logger::log('No GNU Social parent found for item ' . $post['id']);
$b['execute'] = false;
return;
@ -1098,7 +1098,7 @@ function statusnet_createpost(App $a, $uid, $post, $self, $create_user, $only_ex
$postarray['uri'] = $hostname . "::" . $content->id;
if (Item::exists(['extid' => $postarray['uri'], 'uid' => $uid])) {
if (Post::exists(['extid' => $postarray['uri'], 'uid' => $uid])) {
return [];
}