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;
--------------------------------------------------------------------------------