[dw-free] Network page uses text_post_comment instead of text_post_comment_friends
[commit: http://hg.dwscoalition.org/dw-free/rev/712a215e4459]
http://bugs.dwscoalition.org/show_bug.cgi?id=1795
Correct the logic, because network page now has a $.view of "network"
instead of "read"
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1795
Correct the logic, because network page now has a $.view of "network"
instead of "read"
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/core1.s2
- bin/upgrading/s2layers/core2.s2
-------------------------------------------------------------------------------- diff -r e1c82151d4b7 -r 712a215e4459 bin/upgrading/s2layers/core1.s2 --- a/bin/upgrading/s2layers/core1.s2 Thu Sep 24 18:08:04 2009 +0000 +++ b/bin/upgrading/s2layers/core1.s2 Thu Sep 24 18:16:29 2009 +0000 @@ -2571,7 +2571,7 @@ function CommentInfo::print_postlink() { if ($.maxcomments) { print safe "$*text_max_comments"; } else { - print safe "<a href=\"$.post_url\">"+($p.view == "read" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; + print safe "<a href=\"$.post_url\">"+($p.view == "read" or $p.view == "network" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; } } function CommentInfo::print() { diff -r e1c82151d4b7 -r 712a215e4459 bin/upgrading/s2layers/core2.s2 --- a/bin/upgrading/s2layers/core2.s2 Thu Sep 24 18:08:04 2009 +0000 +++ b/bin/upgrading/s2layers/core2.s2 Thu Sep 24 18:16:29 2009 +0000 @@ -4781,7 +4781,7 @@ function CommentInfo::print_postlink() { if ($.maxcomments) { print safe "$*text_max_comments"; } else { - print safe "<a href=\"$.post_url\">"+($p.view == "read" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; + print safe "<a href=\"$.post_url\">"+($p.view == "read" or $p.view == "network" ? $*text_post_comment_friends : $*text_post_comment)+"</a>"; } } function CommentInfo::print() { --------------------------------------------------------------------------------