Most functions now moved from include/items.php

This commit is contained in:
Michael 2018-01-28 11:18:08 +00:00
parent b158914c41
commit 7b27dda784
22 changed files with 1488 additions and 1523 deletions

View file

@ -423,7 +423,7 @@ class Feed {
if (!$simulate) {
logger("Stored feed: ".print_r($item, true), LOGGER_DEBUG);
$notify = item_is_remote_self($contact, $item);
$notify = Item::isRemoteSelf($contact, $item);
// Distributed items should have a well formatted URI.
// Additionally we have to avoid conflicts with identical URI between imported feeds and these items.
@ -433,7 +433,7 @@ class Feed {
unset($item['parent-uri']);
}
$id = item_store($item, false, $notify);
$id = Item::insert($item, false, $notify);
logger("Feed for contact ".$contact["url"]." stored under id ".$id);
} else {