aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-25 11:01:25 +0000
committerMario <mario@mariovavti.com>2020-11-25 11:01:25 +0000
commit87d7a3053ac06e966ca54911fe50005fb0530e2f (patch)
treeaa04eac6ec71255b08065c6373692397efd0ab3d /include
parentae11b2c2818fce5161e3367e5677e28ea5686891 (diff)
downloadvolse-hubzilla-87d7a3053ac06e966ca54911fe50005fb0530e2f.tar.gz
volse-hubzilla-87d7a3053ac06e966ca54911fe50005fb0530e2f.tar.bz2
volse-hubzilla-87d7a3053ac06e966ca54911fe50005fb0530e2f.zip
do not reset item_origin to 1 for deleted items to prevent possible looping and do not set item_uplink for sourced rss items - we can not sen anything to them.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index cda53ac82..e10b2be0f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3299,7 +3299,7 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
$private = 1;
$item_wall = 1;
- $item_origin = 1;
+ $item_origin = (($item['item_deleted']) ? 0 : 1); // item_origin for deleted items is set to 0 in delete_imported_item() to prevent looping. In this case we probably should not set it back to 1 here.
$item_uplink = 0;
$item_nocomment = 0;
@@ -3315,7 +3315,7 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
);
}
else {
- $item_uplink = 1;
+ $item_uplink = (($item['item_rss']) ? 0 : 1); // Do not set item_uplink for rss items - we can not send anything to them.
// if this is an edit, item_store_update() will have already updated the item
// with the correct value for source_xchan (by ignoring it). We cannot set to owner_xchan