X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffeed.php;h=579ff7caae3652cce6c9fcb714720886bd32334f;hb=4053499c38cc4191fd4bf4724d17c968ecd2f756;hp=5adb2294db0248e92b4b9ac3e81a9288c3866f11;hpb=2e9d233367068fceac8005126d14a2002539c772;p=friendica.git diff --git a/include/feed.php b/include/feed.php index 5adb2294db..579ff7caae 100644 --- a/include/feed.php +++ b/include/feed.php @@ -325,6 +325,14 @@ function feed_import($xml,$importer,&$contact, &$hub, $simulate = false) { logger("Stored feed: ".print_r($item, true), LOGGER_DEBUG); $notify = item_is_remote_self($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. + if ($notify) { + unset($item['uri']); + unset($item['parent-uri']); + } + $id = item_store($item, false, $notify); logger("Feed for contact ".$contact["url"]." stored under id ".$id);