trypost/app/Http/Requests/App
Paulo Castellano 953be22b5b fix(posts): block scheduling when content exceeds any platform's char limit
Threads posts over 500 chars were saved + scheduled successfully and only
failed inside the publish job. The frontend already showed the 537|500 badge
but `canSchedule` ignored content length, so Schedule and Post Now stayed
enabled. Backend `UpdatePostRequest` only capped at 63206 (Facebook's max),
not per-platform.

- Add `Platform::contentOverflow()` as the single source of truth and reuse it
  from `HasSocialHttpClient::validateContentLength` (publish-time).
- New `ContentFitsPlatformLimits` rule applied to the `content` field on
  `App\\UpdatePostRequest`, `Api\\UpdatePostRequest`, and `Api\\StorePostRequest`
  via `Rule::when(...)` so drafts are not blocked.
- Rule dedupes per platform (two Threads accounts -> one error) and reports
  the platform label, hard cap, and overage via i18n.
- Edit.vue feeds `contentLengthOverflows` into `canSchedule` and lists each
  offending platform in `postActionTooltip` using the existing
  `getPlatformLabel` resolver.
2026-05-11 19:39:41 -03:00
..
Ai feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00
ApiKey refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
Asset refactor: replace regex/preg_match with sscanf + ends_with in chunked upload 2026-05-04 14:59:57 -03:00
Auth refactor: organize middleware/requests into App/ subdirs, add Resources, fix auth routes 2026-03-29 21:13:30 -03:00
Invite feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Label refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
Post fix(posts): block scheduling when content exceeds any platform's char limit 2026-05-11 19:39:41 -03:00
PostComment feat: complete AI assistant with custom services and brand config 2026-04-16 09:25:08 -03:00
PostTemplate feat: pass and persist post dates through AI creation wizard and template application flows 2026-05-06 17:21:30 -03:00
Settings feat: implement consolidated authentication settings including session management and social provider integration 2026-05-03 17:42:44 -03:00
Workspace feat: AI image generation pipeline and post creation overhaul 2026-05-08 13:38:30 -03:00