Changeset 13455

Show
Ignore:
Timestamp:
11/16/07 13:35:32 (1 year ago)
Author:
bergie
Message:

Duplicate check also against link URLs and not only against PermaLink? GUIDs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/net.nemein.rss/fetch.php

    r13405 r13455  
    218218        else 
    219219        { 
     220            // Check against duplicate hits that may come from different feeds 
     221            if ($item['link']) 
     222            { 
     223                $qb = midcom_db_article::new_query_builder(); 
     224                $qb->add_constraint('topic', '=', $this->_feed->node); 
     225                $qb->add_constraint('url', '=', $item['link']); 
     226                $hits = $qb->count(); 
     227                if ($hits > 0) 
     228                { 
     229                    // Dupe, skip 
     230                    return false; 
     231                } 
     232            } 
     233         
    220234            // This is a new item 
    221235            $article = new midcom_db_article();