fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-05-16 04:57 pm

[dw-free] It is possible to add a redirect account to your circle.

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

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

When trying to add a redirect account, add the account it redirects to
instead.

Patch by [personal profile] fu.

Files modified:
  • htdocs/manage/circle/edit.bml
--------------------------------------------------------------------------------
diff -r 7b5e08b1f2f2 -r 6bd4705a82f8 htdocs/manage/circle/edit.bml
--- a/htdocs/manage/circle/edit.bml	Tue May 17 00:38:21 2011 +0800
+++ b/htdocs/manage/circle/edit.bml	Tue May 17 00:57:20 2011 +0800
@@ -356,6 +356,9 @@
                     push @not_user, $POST{"editfriend_add_${num}_user"};
                     next;
                 }
+                if ( $other_u->is_redirect && $other_u->prop( 'renamedto' ) ) {
+                    $other_u = $other_u->get_renamed_user;
+                }
 
                 my $trusted_nonotify = $u->trusts( $other_u ) ? 1 : 0;
                 my $watched_nonotify = $u->watches( $other_u ) ? 1 : 0;
--------------------------------------------------------------------------------

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