Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't add the pseudo-data is_future to a story row before returning.

  • Loading branch information...
commit ffe7f7bcb4f3e8246a79d9def3702c838fa4693d 1 parent 7e6f429
Jamie McCarthy jamiemccarthy authored

Showing 1 changed file with 8 additions and 7 deletions. Show diff stats Hide diff stats

  1. +8 7 Slash/DB/MySQL/MySQL.pm
15 Slash/DB/MySQL/MySQL.pm
@@ -5821,10 +5821,11 @@ sub getStory {
5821 5821 # but why do a join if it's not needed?
5822 5822 my($append, $answer, $db_id);
5823 5823 $db_id = $self->sqlQuote($id);
5824   - my($column_clause) = $self->_stories_time_clauses({
5825   - try_future => 1, must_be_subscriber => 0
5826   - });
5827   - $answer = $self->sqlSelectHashref("*, $column_clause", 'stories', "sid=$db_id");
  5824 +# my($column_clause) = $self->_stories_time_clauses({
  5825 +# try_future => 1, must_be_subscriber => 0
  5826 +# });
  5827 +# $answer = $self->sqlSelectHashref("*, $column_clause", 'stories', "sid=$db_id");
  5828 + $answer = $self->sqlSelectHashref("*", 'stories', "sid=$db_id");
5828 5829 $append = $self->sqlSelectHashref('*', 'story_text', "sid=$db_id");
5829 5830 for my $key (keys %$append) {
5830 5831 $answer->{$key} = $append->{$key};
@@ -5870,9 +5871,9 @@ sub getStory {
5870 5871 # would involve converting the story's timestamp to unix epoch, and
5871 5872 # (2) we can't expire individual stories, we'd have to expire the
5872 5873 # whole story cache, and that would not be good for performance.
5873   - if ($self->{$table_cache}{$id}{is_future}) {
5874   - delete $self->{$table_cache}{$id};
5875   - }
  5874 +# if ($self->{$table_cache}{$id}{is_future}) {
  5875 +# delete $self->{$table_cache}{$id};
  5876 +# }
5876 5877 # Now return what we need to return.
5877 5878 return $retval;
5878 5879 }

0 comments on commit ffe7f7b

Please sign in to comment.
Something went wrong with that request. Please try again.