Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use the full url when resolving #5345

Merged
merged 5 commits into from
Apr 21, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Apr 21, 2024

The link passed to the link resolver is the one that ends up in the return value of getLink() (if it wasn't resolved in the meantime).

Calling setLink on a LinkElement doesn't actually do anything, because it provides its own getLink.

Fixes #5343.

voting for a patch release this week

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
tests/src/LinkParser.cpp Outdated Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) April 21, 2024 19:22
@pajlada pajlada merged commit dfa929e into Chatterino:master Apr 21, 2024
17 checks passed
@Nerixyz Nerixyz deleted the fix/links-again branch April 21, 2024 19:24
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.

Unable to open links without protocol
2 participants