Skip to content

Fix review nits - #5

Merged
arnelirobles merged 2 commits into
mainfrom
review-nits
Nov 12, 2026
Merged

arnelirobles merged 2 commits into
mainfrom
review-nits

Conversation

@arnelirobles

Copy link
Copy Markdown
Contributor

Fixes the plain nits from the whole-repo review. README now says one like per browser. Share links are skipped when the content has no URL. MastodonInstance is validated as a bare host at startup. The reading-time tag strip is a one-pass scan. A test shows the like endpoint policy returns 429 after the limit.

The limiter keying behind a proxy (SL2 design half) is left alone.

- test: ShareLinksViewComponentTests.Content_with_no_url_renders_nothing
  breaks: src/BaryoDev.Umbraco.ShareLike/Components/ShareLinksViewComponent.cs "url == \"#\""
- test: ShareLikeOptionsTests.A_host_with_a_scheme_path_port_or_credentials_fails_validation
  breaks: src/BaryoDev.Umbraco.ShareLike/ShareLikeComposer.cs "ShareLikeOptions.IsBareHost(o.MastodonInstance)"
- test: ReadingTimeTests.A_long_run_of_open_brackets_is_not_quadratic
  breaks: src/BaryoDev.Umbraco.ShareLike/ReadingTime/ReadingTimeCalculator.cs "var close = html.IndexOf('>', open + 1);"
- untested: src/BaryoDev.Umbraco.ShareLike/ShareLikeOptions.cs
  why: IsBareHost is covered through the composer validation test

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@arnelirobles
arnelirobles marked this pull request as ready for review November 12, 2026 15:43
@arnelirobles
arnelirobles merged commit 05c7c0f into main Nov 12, 2026
2 checks passed
@arnelirobles
arnelirobles deleted the review-nits branch November 12, 2026 15:43
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.

1 participant