mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-06-14 08:37 pm

[dw-free] Non-admins cannot report spam to their community posts

[commit: http://hg.dwscoalition.org/dw-free/rev/95e14adde193]

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

Allow non-maintainers to mark comments as spam. I.e., when you delete a
comment to a post you made.

Patch by [personal profile] kareila.

Files modified:
  • htdocs/js/commentmanage.js
--------------------------------------------------------------------------------
diff -r 773cfddf6dce -r 95e14adde193 htdocs/js/commentmanage.js
--- a/htdocs/js/commentmanage.js	Sun Jun 14 20:28:17 2009 +0000
+++ b/htdocs/js/commentmanage.js	Sun Jun 14 20:37:51 2009 +0000
@@ -410,7 +410,7 @@ function createDeleteFunction (ae, dItem
                 finalHeight -= 15;
             }
 
-            if (remoteUser != com.u && canAdmin) {
+            if (remoteUser != "" && remoteUser != com.u) {
                 lbl = "ljpopdel" + dItemid + "spam";
                 inHTML += "<input type='checkbox' value='spam' id='" + lbl + "'> <label for='" + lbl + "'>Mark this comment as spam</label><br />";
             } else {
--------------------------------------------------------------------------------

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