Issue 1769: Some enhancements for sending wall mails

pull/2544/head
Michael Vogel 7 years ago
parent d40f32cc55
commit 77f7619720
  1. 11
      mod/message.php
  2. 6
      mod/wallmessage.php

@ -446,9 +446,11 @@ function message_content(&$a) {
if($message['from-url'] == $myprofile) {
$from_url = $myprofile;
$sparkle = '';
}
else {
$from_url = 'redir/' . $message['contact-id'];
} elseif ($message['contact-id'] != 0) {
$from_url = 'redir/'.$message['contact-id'];
$sparkle = ' sparkle';
} else {
$from_url = $message['from-url']."?zrl=".urlencode($myprofile);
$sparkle = ' sparkle';
}
@ -462,8 +464,7 @@ function message_content(&$a) {
$subject_e = template_escape($message['title']);
$body_e = template_escape(Smilies::replace(bbcode($message['body'])));
$to_name_e = template_escape($message['name']);
}
else {
} else {
$from_name_e = $message['from-name'];
$subject_e = $message['title'];
$body_e = Smilies::replace(bbcode($message['body']));

@ -48,7 +48,7 @@ function wallmessage_post(&$a) {
$body = str_replace("\r\n","\n",$body);
$body = str_replace("\n\n","\n",$body);
$ret = send_wallmessage($user, $body, $subject, $replyto);
switch($ret){
@ -68,8 +68,8 @@ function wallmessage_post(&$a) {
info( t('Message sent.') . EOL );
}
// goaway($a->get_baseurl() . '/profile/' . $user['nickname']);
goaway('profile/'.$user['nickname']);
}

Loading…
Cancel
Save