aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-20 14:33:15 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-20 14:33:15 -0700
commit709c86b2daec32ae0d5d6d0e7f88b8607e02edba (patch)
tree2975e62aebdda560502e3e2454153020e6377db6 /mod/item.php
parent82174bbfa8ae45cebd75efbf597abf8623caa4b7 (diff)
downloadvolse-hubzilla-709c86b2daec32ae0d5d6d0e7f88b8607e02edba.tar.gz
volse-hubzilla-709c86b2daec32ae0d5d6d0e7f88b8607e02edba.tar.bz2
volse-hubzilla-709c86b2daec32ae0d5d6d0e7f88b8607e02edba.zip
added location tagging
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index c658a871d..5b81f13ee 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -72,6 +72,7 @@ function item_post(&$a) {
$title = notags(trim($_POST['title']));
$body = escape_tags(trim($_POST['body']));
+ $location = notags(trim($_POST['location']));
if(! strlen($body)) {
notice( t('Empty post discarded.') . EOL );
@@ -142,8 +143,8 @@ function item_post(&$a) {
$r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`,
- `edited`, `uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
- VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
+ `edited`, `uri`, `title`, `body`, `location`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
+ VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($profile_uid),
dbesc($post_type),
intval($contact_id),
@@ -158,6 +159,7 @@ function item_post(&$a) {
dbesc($uri),
dbesc($title),
dbesc($body),
+ dbesc($location),
dbesc($str_contact_allow),
dbesc($str_group_allow),
dbesc($str_contact_deny),