From 93c3c153f0fb88930e37d1d829c1d26f0a4fb4e1 Mon Sep 17 00:00:00 2001 From: Daenney Date: Sun, 27 Apr 2025 13:36:27 +0200 Subject: [chore] Rewrite all remaining Github links --- internal/text/markdown_test.go | 8 ++++---- internal/text/plain_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/text') diff --git a/internal/text/markdown_test.go b/internal/text/markdown_test.go index 923487978..5048fab87 100644 --- a/internal/text/markdown_test.go +++ b/internal/text/markdown_test.go @@ -75,9 +75,9 @@ const ( mdWithAsciiHeartExpected = "

hello <3 old friend <3 i loved u </3 :(( you stole my heart

" mdWithStrikethrough = "I have ~~mdae~~ made an error" mdWithStrikethroughExpected = "

I have mdae made an error

" - mdWithLink = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" - mdWithLinkExpected = "

Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial

" - mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://github.com/superseriousbusiness/gotosocial" + mdWithLink = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" + mdWithLinkExpected = "

Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial

" + mdWithLinkBasicExpected = "Check out this code, i heard it was written by a sloth https://codeberg.org/superseriousbusiness/gotosocial" mdObjectInCodeBlock = "@foss_satan@fossbros-anonymous.io this is how to mention a user\n```\n@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\n```\nhope that helps" mdObjectInCodeBlockExpected = "

@foss_satan this is how to mention a user

@the_mighty_zork hey bud! nice #ObjectOrientedProgramming software you've been writing lately! :rainbow:\n

hope that helps

" // Hashtags can be italicized but only with *, not _. @@ -125,7 +125,7 @@ func (suite *MarkdownTestSuite) TestParseWithHashtag() { suite.Equal(withHashtagExpected, formatted.HTML) } -// Regressiom test for https://github.com/superseriousbusiness/gotosocial/issues/3618 +// Regressiom test for https://codeberg.org/superseriousbusiness/gotosocial/issues/3618 func (suite *MarkdownTestSuite) TestParseWithTamilHashtag() { formatted := suite.FromMarkdown(withTamilHashtag) suite.Equal(withTamilHashtagExpected, formatted.HTML) diff --git a/internal/text/plain_test.go b/internal/text/plain_test.go index 2ac7ae30b..dbc675908 100644 --- a/internal/text/plain_test.go +++ b/internal/text/plain_test.go @@ -216,10 +216,10 @@ i will not be ashamed!`, }, { // Check newlines, links, lists still more or less readable as such. - html: "

Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial v0.18.0 Scroingly Sloth!

https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.18.0

Please read the migration notes carefully for instructions on how to upgrade to this version. This version contains several very long migrations so you will need to be patient when upgrading, and backup your database first!!

Release highlights

Thanks for reading! And seriously back up your database.

", + html: "

Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial v0.18.0 Scroingly Sloth!

https://codeberg.org/superseriousbusiness/gotosocial/releases/tag/v0.18.0

Please read the migration notes carefully for instructions on how to upgrade to this version. This version contains several very long migrations so you will need to be patient when upgrading, and backup your database first!!

Release highlights

Thanks for reading! And seriously back up your database.

", expectedPlain: `Hello everyone, after a week or two down the release candidate mines, we've emerged blinking into the light carrying with us #GoToSocial v0.18.0 Scroingly Sloth! -https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.18.0 +https://codeberg.org/superseriousbusiness/gotosocial/releases/tag/v0.18.0 Please read the migration notes carefully for instructions on how to upgrade to this version. This version contains several very long migrations so you will need to be patient when upgrading, and backup your database first!! -- cgit v1.2.3