fixing output for matrix message

This commit is contained in:
w0bm
2024-02-18 15:20:35 +00:00
parent bae8bcae6c
commit 289e5ea82e
5 changed files with 2 additions and 4 deletions

View File

@@ -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>'],