fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-05-14 05:54 am

[dw-free] deal with "Use community userpics instead of poster's userpic"

[commit: http://hg.dwscoalition.org/dw-free/rev/35cb84a02f6f]

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

If this is enabled, then link to the community's icon page, rather than the
individual user's icon page.

Patch by [personal profile] kareila.

Files modified:
  • bin/upgrading/s2layers/core2.s2
--------------------------------------------------------------------------------
diff -r 699d6820930b -r 35cb84a02f6f bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2	Fri May 14 05:29:59 2010 +0000
+++ b/bin/upgrading/s2layers/core2.s2	Fri May 14 05:54:11 2010 +0000
@@ -4368,7 +4368,14 @@ function EntryLite::print_userpic() {
     print "<div class=\"userpic\">";
     if ( defined $this.userpic )
     {
-        print """<a href="$this.poster.userpic_listing_url">""";
+        if ( $*use_shared_pic )
+        {
+            print """<a href="$this.journal.userpic_listing_url">""";
+        }
+        else
+        {
+            print """<a href="$this.poster.userpic_listing_url">""";
+        }
         $this.userpic->print();
         print "</a>";
     }
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org