kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-09-09 01:33 am

[dw-free] Add the option to send a message while adding someone to your circle

[commit: http://hg.dwscoalition.org/dw-free/rev/001270b78c33]

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

Include a link to PM a user after adding them.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/manage/circle/add.bml
  • htdocs/manage/circle/add.bml.text
--------------------------------------------------------------------------------
diff -r e0fda35223d3 -r 001270b78c33 htdocs/manage/circle/add.bml
--- a/htdocs/manage/circle/add.bml	Tue Sep 08 20:18:11 2009 -0500
+++ b/htdocs/manage/circle/add.bml	Tue Sep 08 20:32:45 2009 -0500
@@ -95,7 +95,10 @@
         $body .= "<?h1 $ML{'.add.header'} h1?>";
 
         $body .= "<?p " . BML::ml('.add.text2', { 'ljuser' => LJ::ljuser($u) }) . " p?>";
-        $body .= "<ul><li><a href='" . $remote->journal_base . "/read'>$ML{'.add.next.friends'}</a></li>";
+        $body .= "<ul>";
+        $body .= "<li><a href='$LJ::SITEROOT/inbox/compose?user=$user'>$ML{'.add.next.message'}</a></li>"
+            if $u->is_personal && $u->can_receive_message( $remote );
+        $body .= "<li><a href='" . $remote->journal_base . "/read'>$ML{'.add.next.friends'}</a></li>";
         $body .= "<li><a href='$LJ::SITEROOT/manage/circle/edit'>$ML{'.add.next.modify'}</a></ul>";
         return;
     }
diff -r e0fda35223d3 -r 001270b78c33 htdocs/manage/circle/add.bml.text
--- a/htdocs/manage/circle/add.bml.text	Tue Sep 08 20:18:11 2009 -0500
+++ b/htdocs/manage/circle/add.bml.text	Tue Sep 08 20:32:45 2009 -0500
@@ -3,6 +3,8 @@
 .add.header=Success
 
 .add.next.friends=View your reading page
+
+.add.next.message=Send this user a message
 
 .add.next.modify=Modify your circle
 
--------------------------------------------------------------------------------

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