Changeset 1467

Show
Ignore:
Timestamp:
05/11/06 16:17:09 (2 years ago)
Author:
mbonetti
Message:

quick and dirty fix for #308.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/feed.php

    r1463 r1467  
    6767    } 
    6868    // hide deprecated 
    69     $sql .= " and not(mode & " . RSS_MODE_DELETED_STATE . ") "; 
     69    // mbi: don't actually: we want items of deprecated feeds to be accessible, still. 
     70    //$sql .= " and not(mode & " . RSS_MODE_DELETED_STATE . ") "; 
    7071 
    7172    $res =  rss_query( $sql ); 
     
    157158 
    158159        $sql .=" and not(i.unread & " . RSS_MODE_DELETED_STATE  .") "; 
    159  
    160160        $sql .=" order by i.added desc, i.id asc"; 
    161161 
     
    181181        $sql = "select c.id from ". getTable('channels')." c " 
    182182               ." where c.parent=$fid and c.parent > 0"; 
    183         $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     183        //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    184184 
    185185        if (hidePrivate()) { 
     
    205205            $sql .= "and t.tag like '$vfid'"; 
    206206        } 
    207         $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     207        //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    208208 
    209209        if (hidePrivate()) { 
     
    322322               ." where i.unread & " .RSS_MODE_UNREAD_STATE 
    323323               ." and i.cid=$cid" 
    324                ." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") "; 
     324               //." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
     325               ; 
    325326        if (hidePrivate()) { 
    326327            $sql .=" and not(i.unread & " . RSS_MODE_PRIVATE_STATE .") "; 
     
    347348                   . getTable('channels') . " c, " 
    348349                   . getTable('folders') . " f " 
    349                    . "where c.parent=f.id and not (c.mode & " . RSS_MODE_DELETED_STATE .") "; 
     350                   . "where c.parent=f.id " 
     351                   ." and not (c.mode & " . RSS_MODE_DELETED_STATE .") " 
     352                   ; 
    350353            if (hidePrivate()) { 
    351354                $sql .= " and not (c.mode & " . RSS_MODE_PRIVATE_STATE . ") "; 
     
    683686    $res = rss_query ("select c.title, c.icon, i.title from " . getTable("channels") ." c, " 
    684687                      .getTable("item") ." i where c.id = $cid and i.cid=c.id and i.id=$iid" 
    685                       ." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
     688                      //." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
    686689                     ); 
    687690 
     
    11821185                $sql .=" and not(c.mode & " . RSS_MODE_PRIVATE_STATE .") "; 
    11831186            } 
    1184             $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     1187            //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    11851188 
    11861189            if (getConfig('rss.config.absoluteordering')) {