Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10106: LJSUP-7758: AntiSpam S2

Committer: esavintcev
LJSUP-7758: AntiSpam S2
U   trunk/bin/upgrading/s2layers/voxhtml/layout.s2
Modified: trunk/bin/upgrading/s2layers/voxhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-02-24 09:31:39 UTC (rev 10105)
+++ trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-02-24 09:33:22 UTC (rev 10106)
@@ -1958,15 +1958,15 @@
         var string comments_showspam = "";
         if ($.entry.comments.count > 0 and not $.entry.comments.locked) {
             if ($p.showspam) {
-                $comments_showspam = """<span class="comments-hidespam"><a href=\"$.entry.permalink_url\">$*text_hidespam</a></span> <span class="emdash">—</span> """;
+                $comments_showspam = """<span class="comments-hidespam"><a href=\"$.entry.comments.read_spam_url\">$*text_hidespam</a></span> <span class="emdash">—</span> """;
             } else {
-                $comments_showspam = """<span class="comments-showspam"><a href=\"$.entry.permalink_url?mode=showspam\">$*text_showspam</a></span> <span class="emdash">—</span> """;
+                $comments_showspam = """<span class="comments-showspam"><a href=\"$.entry.comments.read_spam_url\">$*text_showspam</a></span> <span class="emdash">—</span> """;
             }
         } elseif ($.entry.comments.count > 0) {
             if ($p.showspam) {
-                $comments_showspam = """<span class="comments-hidespam"><a href=\"$.entry.permalink_url\">$*text_hidespam</a></span> """;
+                $comments_showspam = """<span class="comments-hidespam"><a href=\"$.entry.comments.read_spam_url\">$*text_hidespam</a></span> """;
             } else {
-                $comments_showspam = """<span class="comments-showspam"><a href=\"$.entry.permalink_url?mode=showspam\">$*text_showspam</a></span> """;
+                $comments_showspam = """<span class="comments-showspam"><a href=\"$.entry.comments.read_spam_url\">$*text_showspam</a></span> """;
             }
         } else {
             $comments_showspam = "";

Tags: ljcom, s2, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments