• Previous message: [greg-dev] Determining item uniqueness
  • Next message: [greg-dev] Re: authentication directory of multi user
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] Determining item uniqueness

    Which version of gregarius are you using? Unless I was just fantasizing
    about it, I am pretty sure I fixed this issue for version 0.5.4. Can you
    look at the latest svn code and see if you still have problems? Thanks. 
    
    Regards,
    Sameer
    
    
    -----Original Message-----
    
    Date: Wed, 11 Oct 2006 17:08:20 -0400
    From: e-head <ebone+gregarius at dotsandloops.net>
    To: gregarius-dev at sinless.org
    Subject: [greg-dev] Determining item uniqueness
    Reply-To: gregarius-dev at sinless.org
    
    I'm not sure I agree with the way gregarius determines if an item is
    unique for the purposes of updating/adding.
    
    It makes it's decision here (util.php):
    $sql = "select id,length(description),unread from ".getTable("item")."
    where cid=$cid and url='$url' and title='$dbtitle'";
    
    So, it decides based on url, title, and cid.
    
    I've seen feeds change the url of items, unfortunately. Particularly
    feeds coming from message boards.
    
    Most of the feeds that do this have a guid field though, fortunately.
    
    So, I think there should be 2 cases ...
    check for guid first, then check for url, cid, title.
    
    Checking for guid first (and allowing updating), will prevent 2
    headlines from these nasty feeds that change their item url's.
    
    Also, guid is not always a permalink. Only if the attribute isPermalink
    is set to 'true'. Using guid for url can be dangerous.
    
    -- 
    Lonely is a man without love.
    		-- Englebert Humperdinck
    _______________________________________________
    gregarius-dev mailing list
    gregarius-dev at sinless.org
    http://sinless.org/mailman/listinfo/gregarius-dev
    
    Posted by Sameer D'Costa [reply] at Wed Oct 11 23:28:56 CEST 2006