diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-09 22:02:28 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-09 22:02:28 -0700 |
commit | 3a69413f863ebc80ff64542bdb4ca684eb87a310 (patch) | |
tree | 71942231edccc058e6ff431422a66f0a116babe3 /include/items.php | |
parent | 2e6041d1b6097f3f6c6d840461119f76105a4cde (diff) | |
download | volse-hubzilla-3a69413f863ebc80ff64542bdb4ca684eb87a310.tar.gz volse-hubzilla-3a69413f863ebc80ff64542bdb4ca684eb87a310.tar.bz2 volse-hubzilla-3a69413f863ebc80ff64542bdb4ca684eb87a310.zip |
more preparation for activities
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index 7c1ef70df..e37ed28d1 100644 --- a/include/items.php +++ b/include/items.php @@ -306,6 +306,14 @@ function post_remote($a,$arr) { //print_r($arr); + + if($arr['gravity']) + $arr['gravity = intval($arr['gravity']); + elseif($arr['parent-uri'] == $arr['uri']) + $arr['gravity'] = 0; + else($arr['verb'] == ACTIVITY_POST) + $arr['gravity'] = 6; + if(! x($arr,'type')) $arr['type'] = 'remote'; $arr['wall'] = ((intval($arr['wall'])) ? 1 : 0); |