trypost/app/Exceptions/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
..
BlueskyPublishException.php feat: add Pinterest, Bluesky, Mastodon publish exceptions 2026-03-31 20:43:13 -03:00
ErrorCategory.php feat: add ErrorCategory enum and SocialPublishException base class 2026-03-31 20:34:41 -03:00
FacebookPublishException.php fix: Facebook/Instagram/Threads OAuthException type incorrectly treated as token error — now only code 190 triggers TokenExpiredException 2026-04-01 14:33:26 -03:00
InstagramPublishException.php fix: Facebook/Instagram/Threads OAuthException type incorrectly treated as token error — now only code 190 triggers TokenExpiredException 2026-04-01 14:33:26 -03:00
LinkedInPublishException.php feat: add LinkedIn, X, Threads publish exceptions 2026-03-31 20:43:21 -03:00
MastodonPublishException.php feat: add Pinterest, Bluesky, Mastodon publish exceptions 2026-03-31 20:43:13 -03:00
PinterestPublishException.php feat: add Pinterest, Bluesky, Mastodon publish exceptions 2026-03-31 20:43:13 -03:00
SocialPublishException.php refactor(social): single source of truth for token redaction 2026-05-19 09:21:43 -03:00
ThreadsPublishException.php fix: Facebook/Instagram/Threads OAuthException type incorrectly treated as token error — now only code 190 triggers TokenExpiredException 2026-04-01 14:33:26 -03:00
TikTokPublishException.php refactor: use data_get in MediaOptimizer for consistency 2026-03-31 21:25:37 -03:00
XPublishException.php fix(x): drop chunked upload chunk size from 5MB to 1MB 2026-05-12 20:02:23 -03:00
YouTubePublishException.php refactor: use data_get in MediaOptimizer for consistency 2026-03-31 21:25:37 -03:00