Fixed bug where messages dont appear if user has no avatar
This commit is contained in:
parent
7c874fab21
commit
0af52a3764
4
app.js
4
app.js
@ -992,6 +992,10 @@ function updatePortInUrl(url) {
|
||||
console.error('Invalid URL format:', url);
|
||||
return '';
|
||||
}
|
||||
if (url === '') {
|
||||
console.error('Empty URL:', url);
|
||||
return '';
|
||||
}
|
||||
const urlObj = new URL(url);
|
||||
urlObj.port = servePort;
|
||||
return urlObj.toString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user