diff options
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); |