afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-04-25 04:27 pm

[dw-free] Zesty check for "friends" view needs updating to "read"

[commit: http://hg.dwscoalition.org/dw-free/rev/97b598bd27a9]

http://bugs.dwscoalition.org/show_bug.cgi?id=973

Zesty: "friends" view to "read"

Patch by [personal profile] afuna.

Files modified:
  • bin/upgrading/s2layers/zesty/layout.s2
--------------------------------------------------------------------------------
diff -r 940894138179 -r 97b598bd27a9 bin/upgrading/s2layers/zesty/layout.s2
--- a/bin/upgrading/s2layers/zesty/layout.s2	Sat Apr 25 08:36:53 2009 +0000
+++ b/bin/upgrading/s2layers/zesty/layout.s2	Sun Apr 26 00:23:21 2009 +0800
@@ -1105,7 +1105,7 @@ function Page::lay_get_poster(EntryLite 
 function Page::lay_get_poster(EntryLite e) : string {
     if ( not defined $e.poster ) {
         return $*text_poster_anonymous;
-    } elseif ( not $e.poster->equals($e.journal) and $.view == "friends" ) {
+    } elseif ( not $e.poster->equals($e.journal) and $.view == "read" ) {
 
         # default: "%1 in %2"
         return lay_string_placeholders( $*poster_in_journal, [$e.poster->as_string(), $e.journal->as_string()] );
@@ -1405,7 +1405,7 @@ function Page::lay_print_collapsed_entry
 # Entry poster.
 #
 function Page::lay_print_collapsed_entry_poster(Entry e) : void {
-    if ( $.view == "friends" or not $e.poster->equals($.journal as UserLite) ) {
+    if ( $.view == "read" or not $e.poster->equals($.journal as UserLite) ) {
         print """ &mdash; <span class="poster">""" + $this->lay_get_poster($e) + "</span>";
     }
 }
--------------------------------------------------------------------------------