aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-02-28 20:47:14 -0500
committerAndrew Manning <tamanning@zoho.com>2018-02-28 20:47:14 -0500
commit39fe80a196ee626dda15b5b844dd1d05893f7646 (patch)
tree1c66efd9cb61c2f18c0d98d57b1589de6164101e /include/items.php
parent1035c453ea6468de13db8eb04fbb55d38347ff2a (diff)
parent029d155a07e4d2a0af82a19d3234cee50b57a085 (diff)
downloadvolse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.gz
volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.tar.bz2
volse-hubzilla-39fe80a196ee626dda15b5b844dd1d05893f7646.zip
Merge branch 'dev' into oauth2
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 5a98fbbd4..790b91c88 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2464,7 +2464,7 @@ function tag_deliver($uid, $item_id) {
// this is an update (edit) 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
// after resetting ownership and permission bits
-
+ logger('updating edited tag_deliver post for ' . $u[0]['channel_address']);
start_delivery_chain($u[0], $item, $item_id, 0);
return;
}
@@ -2767,6 +2767,16 @@ function tgroup_check($uid, $item) {
return false;
}
+
+ // see if we already have this item. Maybe it is being updated.
+
+ $r = q("select id from item where mid = '%s' and uid = %d limit 1",
+ dbesc($item['mid']),
+ intval($uid)
+ );
+ if($r)
+ return true;
+
if(! perm_is_allowed($uid,$item['author_xchan'],'tag_deliver'))
return false;