Don't put syndicated posts on the latest things feed, and fix an issue
with the page printing out compressed content.
Patch by mark.
diffs (29 lines):
diff -r 4e1e0a77d569 -r 466abf514b6c cgi-bin/DW/LatestFeed.pm
--- a/cgi-bin/DW/LatestFeed.pm Sat Oct 31 04:58:08 2009 +0000
+++ b/cgi-bin/DW/LatestFeed.pm Sat Oct 31 05:10:54 2009 +0000
@@ -35,6 +35,9 @@ sub new_item {
# entries are [ journalid, jitemid ] which lets us get the LJ::Entry back
if ( $obj->isa( 'LJ::Entry' ) ) {
+ return unless $obj->journal->is_community ||
+ $obj->journal->is_individual;
+
$sclient->insert_jobs(
TheSchwartz::Job->new_from_array( 'DW::Worker::LatestFeed', {
type => 'entry',
diff -r 4e1e0a77d569 -r 466abf514b6c htdocs/latest.bml
--- a/htdocs/latest.bml Sat Oct 31 04:58:08 2009 +0000
+++ b/htdocs/latest.bml Sat Oct 31 05:10:54 2009 +0000
@@ -147,9 +147,9 @@ EOF
}
# final step, toss this in memcache for a minute
- LJ::text_compress( \$ret );
- LJ::MemCache::set( $mckey, [ time + 60, $ret ], 90 );
-
+ my $out = $ret;
+ LJ::text_compress( \$out );
+ LJ::MemCache::set( $mckey, [ time + 60, $out ], 90 );
return $ret;
}
_code?>
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog