Skip to content

fix: properly check if link is in scope of app#1037

Merged
Pecacheu merged 2 commits intostoatchat:mainfrom
amycatgirl:fix/links-to-stoat-domain-workaround
May 7, 2026
Merged

fix: properly check if link is in scope of app#1037
Pecacheu merged 2 commits intostoatchat:mainfrom
amycatgirl:fix/links-to-stoat-domain-workaround

Conversation

@amycatgirl
Copy link
Copy Markdown
Contributor

supersedes #737 because i completely fucked up the branch lol

also takes into account the review inside of the previous PR

@amycatgirl amycatgirl requested a review from a team as a code owner March 17, 2026 18:27
@ThomasJRyan ThomasJRyan requested review from a team and removed request for a team March 17, 2026 18:58
@Pecacheu
Copy link
Copy Markdown
Contributor

Not sure if a hard-coded list of endpoints like that is the ideal way to detect it, since it will have to be updated if we add any more in the future, but it'll definitely do for now to solve the issue.

@Pecacheu
Copy link
Copy Markdown
Contributor

Also if/when this gets merged I will integrate it into #999 because checking the scope of links is important there. Though in that PR it will require a small change of adding the URL of the current instance (if not Stoat) to the list. Currently that is not necessary because the instance can be assumed to be Stoat unless someone rebuilds the client.

Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Mar 29, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <[email protected]>
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Mar 31, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <[email protected]>
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Apr 12, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <[email protected]>
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request Apr 24, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <[email protected]>
@Dadadah
Copy link
Copy Markdown
Member

Dadadah commented Apr 25, 2026

@amycatgirl can you remove the translations from this pr? The workflow has since been fixed.

@amycatgirl amycatgirl force-pushed the fix/links-to-stoat-domain-workaround branch from d654457 to 1188acb Compare May 4, 2026 16:41
@amycatgirl
Copy link
Copy Markdown
Contributor Author

I removed the translation commit. I am now going to rebase the branch into the latest commit

@Pecacheu Pecacheu merged commit b42324b into stoatchat:main May 7, 2026
9 checks passed
Pecacheu added a commit to Pecacheu/for-web that referenced this pull request May 8, 2026
- Support cross-instance channel/server/invite links (Builds on work in stoatchat#1037)
- Auto-redirect to appropriate instance as needed, logging into most recent saved account on instance
- Fix regex for paramsFromPathname to support instance prefix
- Fix annoying draft console logging

Signed-off-by: Pecacheu <[email protected]>
Pecacheu pushed a commit to Pecacheu/for-web that referenced this pull request May 8, 2026
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.

5 participants