aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-08 14:40:33 -0800
committerFriendika <info@friendika.com>2011-03-08 14:40:33 -0800
commitc40944fc86d4c53f32563dc8685c0026ac4ee641 (patch)
treea0f038327596cfb9c8bacb2de2e79f7e804a9ec5 /include/items.php
parent0784c072ce70a8a2c684674e79937690b2734663 (diff)
downloadvolse-hubzilla-c40944fc86d4c53f32563dc8685c0026ac4ee641.tar.gz
volse-hubzilla-c40944fc86d4c53f32563dc8685c0026ac4ee641.tar.bz2
volse-hubzilla-c40944fc86d4c53f32563dc8685c0026ac4ee641.zip
inherit 'wall' setting from parent post on remote item
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index f38c0938f..e930ab5d2 100644
--- a/include/items.php
+++ b/include/items.php
@@ -609,6 +609,7 @@ function item_store($arr,$force_parent = false) {
else {
// find the parent and snarf the item id and ACL's
+ // and anything else we need to inherit
$r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
dbesc($arr['parent-uri']),
@@ -632,6 +633,7 @@ function item_store($arr,$force_parent = false) {
$allow_gid = $r[0]['allow_gid'];
$deny_cid = $r[0]['deny_cid'];
$deny_gid = $r[0]['deny_gid'];
+ $arr['wall'] = $r[0]['wall'];
}
else {