aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-13 20:42:37 -0700
committerFriendika <info@friendika.com>2011-06-13 20:42:37 -0700
commit05eb9ceaba9f87776b61a51a49a967cc578ef58a (patch)
tree6b2de7d5638c7b0671b7462f308cd664e99a6bb8 /include/items.php
parentfb92dbf5d683c3d92a76216c09d23e338c7d3341 (diff)
downloadvolse-hubzilla-05eb9ceaba9f87776b61a51a49a967cc578ef58a.tar.gz
volse-hubzilla-05eb9ceaba9f87776b61a51a49a967cc578ef58a.tar.bz2
volse-hubzilla-05eb9ceaba9f87776b61a51a49a967cc578ef58a.zip
avoid returning events from getting posted again
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 514bd1efa..dc177c468 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1338,6 +1338,8 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0, $secure_fee
$ev = bbtoevent($datarray['body']);
if(x($ev,'desc') && x($ev,'start')) {
$ev['uid'] = $importer['uid'];
+ $ev['uri'] = $item_id;
+
if(is_array($contact))
$ev['cid'] = $contact['id'];
$r = q("SELECT * FROM `event` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1",