Skip to content

feat: allow a higher character limit for X Premium accounts#1090

Open
vytisbulkevicius wants to merge 1 commit into
developmentfrom
feat/pro/639
Open

feat: allow a higher character limit for X Premium accounts#1090
vytisbulkevicius wants to merge 1 commit into
developmentfrom
feat/pro/639

Conversation

@vytisbulkevicius

@vytisbulkevicius vytisbulkevicius commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

X Premium accounts can post up to 25,000 characters, but Revive Social capped Max Characters at 280 for all accounts. This adds a per-account, Pro-only "X Premium account" toggle (in the X/Twitter post-format panel) that raises the Max Characters cap to 25,000.

Reliable detection of X Premium isn't available through the integration, so the toggle is manual and defaults off, with a warning that non-Premium accounts will have long posts rejected by X. The server-side clamp enforces this: it stays at 280 unless the toggle is on and the license is Pro, and the toggle is force-reset to off otherwise. The limit is filterable (rop_x_premium_max_chars).

Will affect the visual aspect of the product

YES — an "X Premium account" toggle is added to the X/Twitter account customization panel (Pro).

Test instructions

  • With a Pro license, open an X/Twitter account's customization panel.
  • Enable X Premium account, set Maximum Characters above 280 (e.g. 5000), Save — the value is kept.
  • Disable the toggle (or on a non-Pro site), set 5000, Save — it is clamped back to 280.
  • Confirm a Premium account can share a post longer than 280 characters.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/tweet-old-post-pro/issues/639

X Premium accounts support up to 25,000 characters, but Max Characters was
capped at 280 for everyone. Add a per-account, Pro-only opt-in toggle ("X
Premium account") that raises the cap to 25,000 (filterable via
rop_x_premium_max_chars). Reliable Premium detection isn't available, so the
toggle is manual and defaults off; the server still clamps to 280 unless the
toggle is on and the license is Pro.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pirate-bot pirate-bot added the pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label) label Jun 19, 2026
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for 4c7f04f is ready 🛎️!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-incomplete The Pull Request checklist is incomplete. (automatic label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants