fixing output for matrix message
This commit is contained in:
@@ -167,7 +167,7 @@ class VideoController extends Controller
|
||||
|
||||
if (config('matrix.enabled') && config('matrix.token') && config('matrix.homeserver') && config('matrix.room')) {
|
||||
$nsfw = in_array('nsfw', $video->getTagArrayNormalizedAttribute());
|
||||
$nsfw = $nsfw ? ' :exclamation: **NSFW** :exclamation:' : '';
|
||||
$nsfw = $nsfw ? ' NSFW' : '';
|
||||
$message = config('matrix.message');
|
||||
$message = str_replace(
|
||||
['<USER>', '<ID>', '<NSFW>'],
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 359 KiB |
@@ -4,5 +4,5 @@ return [
|
||||
'homeserver' => env('MATRIX_HOMESERVER'),
|
||||
'room' => env('MATRIX_ROOMID'),
|
||||
'token' => env('MATRIX_TOKEN'),
|
||||
'message' => '<USER> uploaded a new webm: https://w0bm.com/<ID><NSFW>',
|
||||
'message' => '<USER> uploaded a new <NSFW> webm: https://w0bm.com/<ID>',
|
||||
];
|
||||
|
Reference in New Issue
Block a user