Add federated room detail page and improve address parsing in invites
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m18s

This commit is contained in:
2026-02-27 17:42:37 +01:00
parent 9814150ba8
commit ed97587248
11 changed files with 226 additions and 19 deletions

View File

@@ -77,7 +77,7 @@ router.post('/invite', authenticateToken, async (req, res) => {
const inviteId = uuidv4();
const payload = {
invite_id: inviteId,
from_user: `${req.user.name}@${getFederationDomain()}`,
from_user: `@${req.user.name}@${getFederationDomain()}`,
to_user: to,
room_name: room.name,
room_uid: room.uid,
@@ -195,7 +195,7 @@ router.post('/receive', async (req, res) => {
// Send notification email (truly fire-and-forget never blocks the response)
if (targetUser.email) {
const appUrl = process.env.APP_URL || '';
const appUrl = process.env.APP_URL || `${req.protocol}://${req.get('host')}`;
const inboxUrl = `${appUrl}/federation/inbox`;
const appName = process.env.APP_NAME || 'Redlight';
sendFederationInviteEmail(