trypost/app/Services/Social
Paulo Castellano cf80e1fcae refactor(social): single source of truth for token redaction
Same shape of bug as the refreshToken duplication: the regex that strips
access_token / Bearer headers from logged HTTP bodies existed in three
near-identical copies (HasSocialHttpClient trait, TokenRefreshClient,
SocialPublishException), drifting subtly — SocialPublishException was
missing the JSON "token" pattern.

Extracts a TokenRedactor::redact(string) helper and routes all callers
through it. Adding a new token format now means one regex in one file.
2026-05-19 09:21:43 -03:00
..
Concerns refactor(social): single source of truth for token redaction 2026-05-19 09:21:43 -03:00
BlueskyAnalytics.php refactor: localize analytics metrics and overhaul UI components and dashboard layouts 2026-05-06 15:39:10 -03:00
BlueskyPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
ConnectionVerifier.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
ContentSanitizer.php fix: Mastodon preserves safe HTML (strong, em, a, p, br) instead of stripping everything 2026-04-01 12:05:22 -03:00
FacebookAnalytics.php refactor: localize analytics metrics and overhaul UI components and dashboard layouts 2026-05-06 15:39:10 -03:00
FacebookPublisher.php refactor(facebook): cleanup publishReel after review 2026-05-12 20:43:32 -03:00
InstagramAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
InstagramPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
LinkedInPageAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
LinkedInPagePublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
LinkedInPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
LinkedInTokenSynchronizer.php refactor: unify social analytics, reorganize workspace settings, and implement content validation rules 2026-05-02 12:22:42 -03:00
MastodonAnalytics.php refactor(social): use config for OAuth hosts everywhere 2026-05-19 08:34:35 -03:00
MastodonPublisher.php refactor(social): use config for OAuth hosts everywhere 2026-05-19 08:34:35 -03:00
PinterestAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
PinterestPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
ThreadsAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
ThreadsPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
TikTokAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
TikTokCreatorInfo.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
TikTokPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
TokenRedactor.php refactor(social): single source of truth for token redaction 2026-05-19 09:21:43 -03:00
TokenRefreshClient.php refactor(social): single source of truth for token redaction 2026-05-19 09:21:43 -03:00
XAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
XPublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
YouTubeAnalytics.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00
YouTubePublisher.php refactor(social): single source of truth for token refresh 2026-05-19 09:18:58 -03:00