feat: allow a higher character limit for X Premium accounts#1090
Open
vytisbulkevicius wants to merge 1 commit into
Open
feat: allow a higher character limit for X Premium accounts#1090vytisbulkevicius wants to merge 1 commit into
vytisbulkevicius wants to merge 1 commit into
Conversation
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>
Contributor
Soare-Robert-Daniel
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Check before Pull Request is ready:
Closes https://github.com/Codeinwp/tweet-old-post-pro/issues/639