Skip to content

Google Deprecation - #858

Merged
poppastring merged 5 commits into
mainfrom
reducing-dependencies
Jun 29, 2026
Merged

poppastring merged 5 commits into
mainfrom
reducing-dependencies

Conversation

@poppastring

Copy link
Copy Markdown
Owner

PR Classification

Deprecation and code cleanup to remove Google Analytics and reCAPTCHA support, update Mastodon settings handling, and improve documentation.

PR Summary

This PR removes all Google Analytics and reCAPTCHA support, migrates Mastodon settings to meta.config, and updates related code and documentation. It also simplifies the comments UI and refactors dependency injection for Mastodon settings.

  • Removed all Google Analytics and reCAPTCHA logic from controllers, managers, ViewModels, and Razor views.
  • Introduced IMastodonSettingsResolver and MastodonSettingsResolver, updating all Mastodon references to use meta.config with fallback.
  • Updated AdminController, ActivityPubManager, ActivityPubController, and related tests to use the new Mastodon settings resolver.
  • Cleaned up comments admin UI and comment submission logic, removing all captcha-related fields and validation.
  • Updated README.md and FAQ.md to document the breaking changes and migration steps.

Removed all reCAPTCHA support, including config, UI, DI, and package references. Replaced GoogleAnalyticsID with AnalyticsTrackingId and AnalyticsProvider for broader analytics support. Updated RSS feed and admin UI to use new analytics fields. Cleaned up all related code and tests.
Eliminated all Google-specific analytics and captcha settings from code, config, and UI. Removed related fields from meta config, view models, and admin pages. RSS feed no longer emits analytics elements. Updated docs to note the breaking change and migration steps, recommending Akismet and spam question validation. Cleaned up CSP sources to remove Google analytics/captcha domains.
Removed FaceBookAdmins and FaceBookAppID from IMetaTags, MetaTags, and MetaViewModel. Deleted related XML elements from all meta config files and removed their hidden fields from Settings.cshtml.
Mastodon server URL and account are now stored in meta.config (MetaTags), with site.config as a fallback for backward compatibility. Introduced IMastodonSettingsResolver and MastodonSettingsResolver to centralize Mastodon config resolution. Updated ActivityPubManager, ActivityPubController, and AdminController to use the resolver. Extended MetaTags and IMetaTags with Mastodon fields and updated XML serialization. Admin UI now binds Mastodon fields to MetaConfig, and legacy site config values are cleared on save. Registered MastodonSettingsResolver for DI. Updated unit tests and meta config XML files to support the new fields.
Persist explicit blanks in meta.config for Mastodon settings instead of backfilling from current config. Trim non-empty values and set legacy site.config Mastodon fields to null, ensuring meta.config is the canonical source and intentional blanks are preserved.
@poppastring
poppastring merged commit c85a691 into main Jun 29, 2026
3 checks passed
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