mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-04-13 09:59:52 +00:00
fix homeserver media share link
This commit is contained in:
parent
c8a0a7dd6a
commit
e06fdbb64e
1 changed files with 1 additions and 1 deletions
|
@ -446,7 +446,7 @@ export class Server {
|
|||
if (!mxcregex || !mxcregex.groups)
|
||||
console.log(`Failed to parse MXC URI: ${uri}`);
|
||||
else
|
||||
uri = `https://${this.homeserver}/_matrix/media/v3/download/${mxcregex.groups.servername}/${mxcregex.groups.mediaid}`;
|
||||
uri = `${this.homeserver}/_matrix/media/v3/download/${mxcregex.groups.servername}/${mxcregex.groups.mediaid}`;
|
||||
messageContent = `\x01ACTION shared ${messageContent}: ${uri}\x01`;
|
||||
}
|
||||
const msgArray = (messageContent.indexOf('\n') !== -1) ? messageContent.split('\n'): [messageContent];
|
||||
|
|
Loading…
Add table
Reference in a new issue