trypost/app/Services/Social
Paulo Castellano 6c6078fa6a refactor(social): drop redundant \$account->refresh() after CV refresh
Every refresh*Token method inside ConnectionVerifier already finishes
with \$account->update(...) (mutates the model) + \$account->refresh()
(reloads from DB to pick up sibling updates like LinkedInTokenSynchronizer).
The lock-contention branch in refreshToken() also calls \$account->refresh()
before returning.

So a second \$account->refresh() in the caller was always a redundant
SELECT — no scenario where it actually pulled a different value than
what CV already left in memory. Removed from all 15 call sites, plus
fixed the duplicated "Mastodon tokens don't expire" comment.
2026-05-19 09:52:49 -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): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
ConnectionVerifier.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -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): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
InstagramPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
LinkedInPageAnalytics.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
LinkedInPagePublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
LinkedInPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -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): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
PinterestPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
ThreadsAnalytics.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
ThreadsPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
TikTokAnalytics.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
TikTokCreatorInfo.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
TikTokPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
TokenRedactor.php refactor(social): TokenRedactor::redact accepts nullable 2026-05-19 09:25:01 -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): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
XPublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
YouTubeAnalytics.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00
YouTubePublisher.php refactor(social): drop redundant \$account->refresh() after CV refresh 2026-05-19 09:52:49 -03:00