aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-18 05:00:59 -0700
committerfriendica <info@friendica.com>2012-07-18 05:00:59 -0700
commit0400779b43525de44dab7d076aa184d634aba0f2 (patch)
tree8c1fdeef57335453621bdff74413d63cf0724227 /mod/item.php
parentd683df17bd530739bc64c79f152957ab229b6a02 (diff)
downloadvolse-hubzilla-0400779b43525de44dab7d076aa184d634aba0f2.tar.gz
volse-hubzilla-0400779b43525de44dab7d076aa184d634aba0f2.tar.bz2
volse-hubzilla-0400779b43525de44dab7d076aa184d634aba0f2.zip
remove some d* extraneous bullshit
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/item.php b/mod/item.php
index 1053bb8ca..3b0a52fc9 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -591,8 +591,6 @@ function item_post(&$a) {
if($orig_post)
$datarray['edit'] = true;
- else
- $datarray['guid'] = get_guid();
// preview mode - prepare the body for display and send it via json
@@ -670,11 +668,10 @@ function item_post(&$a) {
$post_id = 0;
- $r = q("INSERT INTO `item` (`guid`, `uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
+ $r = q("INSERT INTO `item` (`uid`,`type`,`wall`,`gravity`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`,
`author-name`, `author-link`, `author-avatar`, `created`, `edited`, `commented`, `received`, `changed`, `uri`, `thr-parent`, `title`, `body`, `app`, `lang`, `location`, `coord`,
`inform`, `verb`, `postopts`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`, `private`, `pubmail`, `attach`,`origin`, `moderated`)
- 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', '%s', '%s', %d, %d, '%s', %d, %d )",
- dbesc($datarray['guid']),
+ 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', '%s', '%s', %d, %d, '%s', %d, %d )",
intval($datarray['uid']),
dbesc($datarray['type']),
intval($datarray['wall']),