aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-19 20:23:19 -0800
committerfriendica <info@friendica.com>2013-12-19 20:23:19 -0800
commitcd78f9d13df721ea218cc8ba023470899b64a151 (patch)
tree8701297a07dce5635226aa575e33f63e476b7e12 /include
parentbccc20f38c3919d453b0dee1ed354aa4eb13b398 (diff)
downloadvolse-hubzilla-cd78f9d13df721ea218cc8ba023470899b64a151.tar.gz
volse-hubzilla-cd78f9d13df721ea218cc8ba023470899b64a151.tar.bz2
volse-hubzilla-cd78f9d13df721ea218cc8ba023470899b64a151.zip
sourced items which are then edited at the source weren't setting up the second delivery chain.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index b328ca2d1..26fdc3c5c 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2148,6 +2148,13 @@ function tag_deliver($uid,$item_id) {
$item = $i[0];
+ if(($item['source_xchan']) && ($item['item_flags'] & ITEM_UPLINK) && ($item['item_flags'] & ITEM_THREAD_TOP) && ($item['edited'] != $item['created'])) {
+ // this is an update to a post which was already processed by us and has a second delivery chain
+ // Just start the second delivery chain to deliver the updated post
+ proc_run('php','include/notifier.php','tgroup',$item['id']);
+ return;
+ }
+
if($item['obj_type'] === ACTIVITY_OBJ_TAGTERM) {
@@ -2444,7 +2451,7 @@ function check_item_source($uid,$item) {
$r = q("select * from source where src_channel_id = %d and src_xchan = '%s' limit 1",
intval($uid),
- dbesc($item['owner_xchan'])
+ dbesc(($item['source_xchan']) ? $item['source_xchan'] : $item['owner_xchan'])
);
if(! $r)