Compare commits
4 Commits
d5bcda7fec
...
e6c0511b33
Author | SHA1 | Date | |
---|---|---|---|
e6c0511b33 | |||
7f95305d75 | |||
9d7455233b | |||
c70222fef8 |
@ -63,8 +63,9 @@ class Echomail extends Matrix
|
||||
->withQueryParameters(['user_id'=>$user])
|
||||
->post(sprintf('https://%s/_matrix/client/v3/rooms/%s/send/m.room.message',config('matrix.server'),$room),[
|
||||
'msgtype'=>'m.text',
|
||||
'format'=>'org.matrix.custom.html',
|
||||
'body'=>mb_convert_encoding(str_replace("\r","\n",$this->o->msg),'UTF-8','IBM850'),
|
||||
'formatted_body'=>sprintf("```\n%s\n```",mb_convert_encoding(str_replace("\r","\n",$this->o->msg),'UTF-8','IBM850')),
|
||||
'formatted_body'=>sprintf("<pre>\n%s\n</pre>",mb_convert_encoding(str_replace("\r","\n",$this->o->msg),'UTF-8','IBM850')),
|
||||
]);
|
||||
|
||||
switch ($msg->status()) {
|
||||
|
Loading…
Reference in New Issue
Block a user