mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:42:54 +00:00
inherit 'wall' setting from parent post on remote item
This commit is contained in:
parent
0784c072ce
commit
c40944fc86
1 changed files with 2 additions and 0 deletions
|
@ -609,6 +609,7 @@ function item_store($arr,$force_parent = false) {
|
||||||
else {
|
else {
|
||||||
|
|
||||||
// find the parent and snarf the item id and ACL's
|
// 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",
|
$r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",
|
||||||
dbesc($arr['parent-uri']),
|
dbesc($arr['parent-uri']),
|
||||||
|
@ -632,6 +633,7 @@ function item_store($arr,$force_parent = false) {
|
||||||
$allow_gid = $r[0]['allow_gid'];
|
$allow_gid = $r[0]['allow_gid'];
|
||||||
$deny_cid = $r[0]['deny_cid'];
|
$deny_cid = $r[0]['deny_cid'];
|
||||||
$deny_gid = $r[0]['deny_gid'];
|
$deny_gid = $r[0]['deny_gid'];
|
||||||
|
$arr['wall'] = $r[0]['wall'];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue