Changeset 1473

Show
Ignore:
Timestamp:
05/16/06 04:52:34 (2 years ago)
Author:
sdcosta
Message:

Removing some stuff from [1467] and [1468] in order to fix #408 about deprecated items showing up when they are not suppossed to.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/feed.php

    r1468 r1473  
    6666        $sql .=" and not(mode & " . RSS_MODE_PRIVATE_STATE .") "; 
    6767    } 
    68     // hide deprecated 
    69     // mbi: don't actually: we want items of deprecated feeds to be accessible, still. 
    70     //$sql .= " and not(mode & " . RSS_MODE_DELETED_STATE . ") "; 
     68    // don't hide deprecated items becuase we want items of deprecated feeds to be accessible 
     69    // $sql .= " and not(mode & " . RSS_MODE_DELETED_STATE . ") "; 
    7170 
    7271    $res =  rss_query( $sql ); 
     
    8584            $sql .=" and not(c.mode & " . RSS_MODE_PRIVATE_STATE .") "; 
    8685        } 
    87         //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     86        $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    8887 
    8988        $res = rss_query( $sql ); 
     
    104103                $sql .=" and not(c.mode & " . RSS_MODE_PRIVATE_STATE .") "; 
    105104            } 
    106             //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     105            $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    107106 
    108107            $res = rss_query( $sql ); 
     
    157156        } 
    158157 
    159         //$sql .=" and not(i.unread & " . RSS_MODE_DELETED_STATE  .") "; 
     158        $sql .=" and not(i.unread & " . RSS_MODE_DELETED_STATE  .") "; 
    160159        $sql .=" order by i.added desc, i.id asc"; 
    161160 
     
    181180        $sql = "select c.id from ". getTable('channels')." c " 
    182181               ." where c.parent=$fid and c.parent > 0"; 
    183         //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     182        $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    184183 
    185184        if (hidePrivate()) { 
     
    205204            $sql .= "and t.tag like '$vfid'"; 
    206205        } 
    207         //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     206        $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    208207 
    209208        if (hidePrivate()) { 
     
    322321               ." where i.unread & " .RSS_MODE_UNREAD_STATE 
    323322               ." and i.cid=$cid" 
    324                //." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
     323               ." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
    325324               ; 
    326325        if (hidePrivate()) { 
     
    686685    $res = rss_query ("select c.title, c.icon, i.title from " . getTable("channels") ." c, " 
    687686                      .getTable("item") ." i where c.id = $cid and i.cid=c.id and i.id=$iid" 
    688                       //." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
     687                      ." and not(i.unread & " . RSS_MODE_DELETED_STATE  .") " 
    689688                     ); 
    690689 
     
    11851184                $sql .=" and not(c.mode & " . RSS_MODE_PRIVATE_STATE .") "; 
    11861185            } 
    1187             //$sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
     1186            $sql .= " and not(c.mode & " .  RSS_MODE_DELETED_STATE .") "; 
    11881187 
    11891188            if (getConfig('rss.config.absoluteordering')) {