diff options
author | Friendika <info@friendika.com> | 2011-02-08 18:44:30 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-08 18:44:30 -0800 |
commit | f70a0b028288fa13c64f1ffaa310765a95347dac (patch) | |
tree | 89507dc18fd29a50c999c2b60cc89b6ef2406078 /include/items.php | |
parent | 766c4778cb0a678ef7f55e56cbd11497a73ae6cb (diff) | |
download | volse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.tar.gz volse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.tar.bz2 volse-hubzilla-f70a0b028288fa13c64f1ffaa310765a95347dac.zip |
more graceful handling of some statusnet followups
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index cffd13a01..b5bdd7833 100644 --- a/include/items.php +++ b/include/items.php @@ -1128,15 +1128,16 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0) { } if(($is_reply) && is_array($contact)) { - + // Have we seen it? If not, import it. $item_id = $item->get_id(); - + $r = q("SELECT `uid`, `last-child`, `edited` FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1", dbesc($item_id), intval($importer['uid']) ); + // FIXME update content if 'updated' changes if(count($r)) { $allow = $item->get_item_tags( NAMESPACE_DFRN, 'comment-allow'); @@ -1155,6 +1156,7 @@ function consume_feed($xml,$importer,&$contact, &$hub, $datedir = 0) { } continue; } + $datarray = get_atom_elements($feed,$item); $force_parent = false; if($contact['network'] === 'stat') { |