aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-09 21:16:40 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-09 21:16:40 -0700
commit2e6041d1b6097f3f6c6d840461119f76105a4cde (patch)
tree12c69bd02b3eb51640af8630f644a72b3b1703ae /mod/item.php
parent3a3bf273c71fc0acbe4681857d6e11f02826d1e7 (diff)
downloadvolse-hubzilla-2e6041d1b6097f3f6c6d840461119f76105a4cde.tar.gz
volse-hubzilla-2e6041d1b6097f3f6c6d840461119f76105a4cde.tar.bz2
volse-hubzilla-2e6041d1b6097f3f6c6d840461119f76105a4cde.zip
activity verbs
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 554ff46ac..a203bb8e5 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -50,6 +50,7 @@ function item_post(&$a) {
$title = notags(trim($_POST['title']));
$body = escape_tags(trim($_POST['body']));
$location = notags(trim($_POST['location']));
+ $verb = notags(trim($_POST['verb']));
if(! strlen($body)) {
notice( t('Empty post discarded.') . EOL );
@@ -108,6 +109,9 @@ function item_post(&$a) {
$wall = 0;
if($post_type == 'wall' || $post_type == 'wall-comment')
$wall = 1;
+
+ if(! strlen($verb))
+ $verb = ACTIVITY_POST ;
$notify_type = (($parent) ? 'comment-new' : 'wall-new' );
@@ -115,8 +119,8 @@ function item_post(&$a) {
$r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`,
- `edited`, `changed`, `uri`, `title`, `body`, `location`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
- VALUES( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
+ `edited`, `changed`, `uri`, `title`, `body`, `location`, `verb`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
+ VALUES( %d, '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($profile_uid),
dbesc($post_type),
intval($wall),
@@ -134,6 +138,7 @@ function item_post(&$a) {
dbesc($title),
dbesc($body),
dbesc($location),
+ dbesc($verb),
dbesc($str_contact_allow),
dbesc($str_group_allow),
dbesc($str_contact_deny),