diff options
author | Friendika <info@friendika.com> | 2011-08-07 17:29:26 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-07 17:29:26 -0700 |
commit | 8812b7f4caa99d01ae0e082c0b29a2ee24aed67d (patch) | |
tree | 0a5988272c513e7bcc789e7864f145f26a3bbfb0 /mod/item.php | |
parent | 1eec10329a4764f132b159e7b1bbf37added6c8a (diff) | |
download | volse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.tar.gz volse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.tar.bz2 volse-hubzilla-8812b7f4caa99d01ae0e082c0b29a2ee24aed67d.zip |
item guids
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php index fd5d405ff..884e730e6 100644 --- a/mod/item.php +++ b/mod/item.php @@ -506,6 +506,9 @@ function item_post(&$a) { if($orig_post) $datarray['edit'] = true; + else + $datarray['guid'] = get_guid(); + call_hooks('post_local',$datarray); @@ -529,11 +532,12 @@ function item_post(&$a) { $post_id = 0; - $r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, + $r = q("INSERT INTO `item` (`guid`, `uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `author-name`, `author-link`, `author-avatar`, `created`, `edited`, `received`, `changed`, `uri`, `thr-parent`, `title`, `body`, `app`, `location`, `coord`, `tag`, `inform`, `verb`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`, `private`, `pubmail`, `attach` ) - VALUES( %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s' )", + VALUES( '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s' )", intval($datarray['uid']), + dbesc($datarray['guid']), dbesc($datarray['type']), intval($datarray['wall']), intval($datarray['gravity']), |