aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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
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')
-rw-r--r--mod/item.php7
-rw-r--r--mod/pubsub.php6
2 files changed, 2 insertions, 11 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']),
diff --git a/mod/pubsub.php b/mod/pubsub.php
index 64fbda289..33d26d553 100644
--- a/mod/pubsub.php
+++ b/mod/pubsub.php
@@ -135,12 +135,6 @@ function pubsub_post(&$a) {
$contact = $r[0];
- // we have no way to match Diaspora guid's with atom post id's and could get duplicates.
- // we'll assume that direct delivery is robust (and this is a bad assumption, but the duplicates are messy).
-
- if($r[0]['network'] === NETWORK_DIASPORA)
- hub_post_return();
-
$feedhub = '';
require_once('include/items.php');