Add federated room detail page and improve address parsing in invites
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m18s
All checks were successful
Build & Push Docker Image / build (push) Successful in 6m18s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user