Improve invite link previews with space metadata (#131) #170

Closed
priyanshu_bharti wants to merge 3 commits from priyanshu_bharti/flotilla:131-improve-link-preview into dev
Contributor

ixes #131

Summary

Detects Flotilla invite links before falling back to generic Open Graph preview behavior.
Renders a relay/space summary card for invite links so the preview is clearly an invitation.
Adds clear copy: Invitation to join a space.

Why

The previous preview looked generic and did not communicate that the link was a space invite.
This change makes invite links informative by showing space-specific details.

Testing

Ran locally and posted invite links in chat.
Verified invite links now show the space-focused preview card.
Verified non-invite links continue using existing preview behavior.

Before

image.png

After

image.png
ixes #131 ## Summary Detects Flotilla invite links before falling back to generic Open Graph preview behavior. Renders a relay/space summary card for invite links so the preview is clearly an invitation. Adds clear copy: Invitation to join a space. ## Why The previous preview looked generic and did not communicate that the link was a space invite. This change makes invite links informative by showing space-specific details. ## Testing Ran locally and posted invite links in chat. Verified invite links now show the space-focused preview card. Verified non-invite links continue using existing preview behavior. ## Before <img width="960" alt="image.png" src="attachments/31c7a254-b5aa-4ef9-a2f7-6cdf64d035e7"> ## After <img width="960" alt="image.png" src="attachments/5f4fca47-9eb0-4cb0-850e-b557e48b63d0">
144 KiB
232 KiB
priyanshu_bharti added 3 commits 2026-04-08 12:28:29 +00:00
Owner

This isn't actually the approach I had in mind, I would prefer to create a server.js file that handles this case regardless of where the link is pasted (in and outside flotilla) using opengraph tags. Flotilla already handles links to itself, so nothing special has to happen in Flotilla.

This isn't actually the approach I had in mind, I would prefer to create a `server.js` file that handles this case regardless of where the link is pasted (in and outside flotilla) using opengraph tags. Flotilla already handles links to itself, so nothing special has to happen in Flotilla.
hodlbod closed this pull request 2026-04-08 16:26:29 +00:00
Owner

Let me know if you're not sure what I mean.

Let me know if you're not sure what I mean.

Pull request closed

Sign in to join this conversation.