Skip to content

Comments

Add "Open in Mlem" action extension#2604

Merged
un1970ix merged 4 commits intodevfrom
un1970ix/open-in-mlem
Feb 21, 2026
Merged

Add "Open in Mlem" action extension#2604
un1970ix merged 4 commits intodevfrom
un1970ix/open-in-mlem

Conversation

@un1970ix
Copy link
Member

Issues

Description

Adds an "Open in Mlem" action extension to the iOS share sheet. When viewing a Lemmy post or community in Safari, users can tap Share > Open in Mlem to open the link directly in the app.

Implementation Notes

  • The action extension (OpenInMlem) uses JavaScript to get the page URL, swaps the scheme to mlem://, and redirects the browser to open the app
  • MlemApp.onOpenURL catches the mlem:// scheme, converts it back to https://, and sets NavigationModel.main.pendingOpenURL
  • HandleThreadiverseLinksModifier observes pendingOpenURL via .onChange and routes it through the existing didReceiveURL pipeline, same path as the paste button in search
  • French localization included for the extension display name

@un1970ix un1970ix requested a review from a team as a code owner February 21, 2026 01:18
@un1970ix un1970ix requested review from EricBAndrews and Sjmarf and removed request for a team February 21, 2026 01:18
@un1970ix un1970ix changed the title Un1970ix/open in mlem Add "Open in Mlem" action extension Feb 21, 2026
Copy link
Member

@Sjmarf Sjmarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great job on this 🔥 A couple minor nits

Copy link
Member

@Sjmarf Sjmarf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀

@un1970ix un1970ix merged commit b63465d into dev Feb 21, 2026
2 checks passed
@un1970ix un1970ix deleted the un1970ix/open-in-mlem branch February 21, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Open in Mlem" share action

2 participants