aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-04 11:56:59 -0800
committerzotlabs <mike@macgirvin.com>2017-03-04 11:56:59 -0800
commit47d2467e24a53e54e0322ffc91c4bf64e7027af9 (patch)
treea14b8d9accf7053ed702d65aa59ed27c5c797877
parenta2f6f48daf3e84a75f9e1ad50c78fffae9f18fc9 (diff)
downloadvolse-hubzilla-47d2467e24a53e54e0322ffc91c4bf64e7027af9.tar.gz
volse-hubzilla-47d2467e24a53e54e0322ffc91c4bf64e7027af9.tar.bz2
volse-hubzilla-47d2467e24a53e54e0322ffc91c4bf64e7027af9.zip
minor feed issue
-rw-r--r--include/feedutils.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index b122a8e4b..d1985649d 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -793,6 +793,10 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$author = array();
$datarray = get_atom_elements($feed,$item,$author);
+ if($datarray['mid'])
+ $datarray['mid'] = normalise_id($item->get_id());
+
+
if($contact['xchan_network'] === 'rss') {
$datarray['public_policy'] = 'specific';
$datarray['comment_policy'] = 'none';
@@ -865,6 +869,9 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$author = array();
$datarray = get_atom_elements($feed,$item,$author);
+ if($datarray['mid'])
+ $datarray['mid'] = normalise_id($item->get_id());
+
if($contact['xchan_network'] === 'rss') {
$datarray['public_policy'] = 'specific';
$datarray['comment_policy'] = 'none';
@@ -939,6 +946,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
continue;
}
+
$datarray['parent_mid'] = $item_id;
$datarray['uid'] = $importer['channel_id'];
$datarray['aid'] = $importer['channel_account_id'];