WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Publicize: Incorrect tweet length calculation cuts off Title (3 posts)

  1. NoMad1337
    Member
    Posted 11 months ago #

    Hey,
    In the current JetPack version, I think Publicize calculates a tweet's length the wrong way.

    By default, the tweet's text contains the post's title and a link to such. However, if the title is too long, it's cut off.
    Now that's a nice thing, but I think the plugin counts all chars of the link to the post as text of the tweet. But Links in Tweets are always 22/23 Chars long, depending on whether http or https is used.

    As an example, this is a faulty tweet of mine: https://twitter.com/TacticalCode/status/328494462391173122
    Note that the post's title actually is
    Leistungsschutzrecht 2.1 – FreeLens verklagt Google wegen Bildersuche
    and therefore 69 chars long.
    Title(69 chars) + space + url(22 chars) = 92 Chars, fits all in one tweet
    Title(69 chars) + space + ...(1 char) + Full URL length(108 chars) = 178 chars.
    So the title is cut off after a maximum of 140-(108+1+1) = 30 chars, which isn't correct.

    Could any dev please fix this in an upcoming version of JetPack?
    (Note that I use the full permalink to my posts, see http://wordpress.org/support/topic/publicize-bug?replies=3 )

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 11 months ago #

    Thanks for the report!

    We're aware of this issue, and we're currently working on a fix. I'll post again here as soon as the problem is solved.

  3. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 9 months ago #

    I wanted to let you know that we've fixed the issue in this changeset:
    http://plugins.trac.wordpress.org/changeset/731123

    The fix will be included in the next Jetpack release.

Reply

You must log in to post.

About this Plugin

About this Topic