make mail replies work
This commit is contained in:
parent
1c6f301d8f
commit
270266357d
@ -1629,7 +1629,12 @@ function mail_store($arr) {
|
||||
$arr['body'] = ((x($arr,'body')) ? trim($arr['body']) : '');
|
||||
$arr['mail_flags'] = ((x($arr,'mail_flags')) ? intval($arr['mail_flags']) : 0 );
|
||||
|
||||
|
||||
|
||||
if(! $arr['parent_uri']) {
|
||||
logger('mail_store: missing parent');
|
||||
$arr['parent_uri'] = $arr['uri'];
|
||||
}
|
||||
|
||||
$r = q("SELECT `id` FROM mail WHERE `uri` = '%s' AND channel_id = %d LIMIT 1",
|
||||
dbesc($arr['uri']),
|
||||
intval($arr['channel_id'])
|
||||
|
@ -437,7 +437,7 @@ logger('message: ' . print_r($message,true));
|
||||
|
||||
logger('mails: ' . print_r($mails,true));
|
||||
|
||||
$recp = (($message['from_xchan'] === $channel['channel_hash']) ? 'to_xchan' : 'from_xchan');
|
||||
$recp = (($message['from_xchan'] === $channel['channel_hash']) ? 'to' : 'from');
|
||||
|
||||
$select = $message[$recp]['xchan_name'] . '<input type="hidden" name="messageto" value="' . $message[$recp]['xchan_hash'] . '" />';
|
||||
$parent = '<input type="hidden" name="replyto" value="' . $message['parent_uri'] . '" />';
|
||||
|
Reference in New Issue
Block a user