]> git.mxchange.org Git - friendica.git/commitdiff
inherit 'wall' setting from parent post on remote item
authorFriendika <info@friendika.com>
Tue, 8 Mar 2011 22:40:33 +0000 (14:40 -0800)
committerFriendika <info@friendika.com>
Tue, 8 Mar 2011 22:40:33 +0000 (14:40 -0800)
include/items.php

index f38c0938fadcfe56d01d9a57294056a404172b46..e930ab5d25532de4bfc2be4fcbe1308a3bfb0639 100644 (file)
@@ -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 {