From 7a24943c3437fbd78948121c54b9a94a26bd8996 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 14 Jan 2015 14:46:01 -0800 Subject: some back-end code to support location activity objects. Work in progress. --- boot.php | 1 + mod/item.php | 1 + 2 files changed, 2 insertions(+) diff --git a/boot.php b/boot.php index 83bbcc3b2..e71f164a3 100755 --- a/boot.php +++ b/boot.php @@ -514,6 +514,7 @@ define ( 'ACTIVITY_OBJ_GROUP', NAMESPACE_ACTIVITY_SCHEMA . 'group' ); define ( 'ACTIVITY_OBJ_TAGTERM', NAMESPACE_ZOT . '/activity/tagterm' ); define ( 'ACTIVITY_OBJ_PROFILE', NAMESPACE_ZOT . '/activity/profile' ); define ( 'ACTIVITY_OBJ_THING', NAMESPACE_ZOT . '/activity/thing' ); +define ( 'ACTIVITY_OBJ_LOCATION',NAMESPACE_ZOT . '/activity/location' ); /** * item weight for query ordering diff --git a/mod/item.php b/mod/item.php index bc8cfd047..7704d0ba6 100644 --- a/mod/item.php +++ b/mod/item.php @@ -88,6 +88,7 @@ function item_post(&$a) { $pagetitle = ((x($_REQUEST,'pagetitle')) ? escape_tags(urlencode($_REQUEST['pagetitle'])) : ''); $layout_mid = ((x($_REQUEST,'layout_mid')) ? escape_tags($_REQUEST['layout_mid']): ''); $plink = ((x($_REQUEST,'permalink')) ? escape_tags($_REQUEST['permalink']) : ''); + $obj_type = ((x($_REQUEST,'obj_type')) ? escape_tags($_REQUEST['obj_type']) : ACTIVITY_OBJ_NOTE); // allow API to bulk load a bunch of imported items with sending out a bunch of posts. $nopush = ((x($_REQUEST,'nopush')) ? intval($_REQUEST['nopush']) : 0); -- cgit v1.2.3