Update chat_window.php
This commit is contained in:
+2
-2
@@ -619,8 +619,8 @@ if (empty($user_id)) {
|
||||
}
|
||||
|
||||
let fullUrl = '';
|
||||
if (isValidMediaUrl(msg.local_file)) {
|
||||
fullUrl = `/api/version/media-url.php?local=${encodeURIComponent(msg.local_file)}`;
|
||||
if (isValidMediaUrl(msg.media_url_external)) {
|
||||
fullUrl = `/api/version/media-url.php?local=${encodeURIComponent(msg.media_url_external)}`;
|
||||
} else if (isValidMediaUrl(msg.media_url_external)) {
|
||||
if (msg.media_url_external.indexOf('api/get_media.php?id=') !== -1) {
|
||||
const parts = msg.media_url_external.split('id=');
|
||||
|
||||
Reference in New Issue
Block a user