Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slash@lithium:~/src/rehash-ncommander$ git diff
- diff --git a/Slash/DB/MySQL/MySQL.pm b/Slash/DB/MySQL/MySQL.pm
- index 1e6fd14..eb46836 100644
- --- a/Slash/DB/MySQL/MySQL.pm
- +++ b/Slash/DB/MySQL/MySQL.pm
- @@ -2801,7 +2801,7 @@ sub checkStoryViewable {
- return 0 if $self->sqlCount(
- "story_param",
- - "stoid = '$stoid' AND name='neverdisplay' AND value > 0");
- + "stoid = '$stoid' AND name='neverdisplay'");
- my @nexuses;
- if ($start_tid) {
- @@ -6002,7 +6002,7 @@ sub getStoryByTime {
- 'stories.stoid, sid, title, stories.tid',
- "story_text, story_topics_rendered,
- stories LEFT JOIN story_param ON (stories.stoid=story_param.stoid
- - AND story_param.name='neverdisplay' AND story_param.value != 0)",
- + AND story_param.name='neverdisplay')",
- "stories.stoid = story_text.stoid
- AND stories.stoid = story_topics_rendered.stoid
- AND '$time' > DATE_SUB($now, INTERVAL $bytime_delay DAY)
- diff --git a/themes/default/htdocs/index.pl b/themes/default/htdocs/index.pl
- index 173e57f..965d082 100755
- --- a/themes/default/htdocs/index.pl
- +++ b/themes/default/htdocs/index.pl
- @@ -149,7 +149,7 @@ my $start_time = Time::HiRes::time;
- if ($stoid_in_str) {
- $nd_hr = $gse_db->sqlSelectAllKeyValue('stoid, value',
- 'story_param',
- - qq{stoid IN ($stoid_in_str) AND name='neverdisplay' AND value != 0});
- + qq{stoid IN ($stoid_in_str) AND name='neverdisplay'});
- if (keys %$nd_hr) {
- for my $story_hr (@$stories) {
- $story_hr->{neverdisplay} = 1 if $nd_hr->{ $story_hr->{stoid} };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement