mirror of
https://github.com/friendica/friendica
synced 2025-04-24 08:30:11 +00:00
avoid returning events from getting posted again
This commit is contained in:
parent
fb92dbf5d6
commit
05eb9ceaba
3 changed files with 5 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue