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-04-29 06:08 am

[dw-free] always cross-post is too persistent

[commit: http://hg.dwscoalition.org/dw-free/rev/6cafedd9e2be]

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

Make crossposter less persistent on edits so people accidentally xpost less.

Patch by [personal profile] allen.

Files modified:
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r 29d7cca0aff1 -r 6cafedd9e2be cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Wed Apr 29 06:06:59 2009 +0000
+++ b/cgi-bin/weblib.pl	Wed Apr 29 06:08:10 2009 +0000
@@ -1570,7 +1570,7 @@ MOODS
                         my $acctid = $acct->acctid;
                         my $acctname = $acct->displayname;
                         my $selected;
-                        if ($xpoststring) {
+                        if ($opts->{mode} eq 'edit') {
                             $selected = $xpost_selected->{$acct->acctid} ? "1" : "0";
                         } else {
                             $selected = $acct->xpostbydefault;
--------------------------------------------------------------------------------

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