Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-313

Short post content generation should be improvement

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10
    • Fix Version/s: 0.11
    • Labels:
      None

      Description

      We're introduced BB-code support so just trimming the post content to 200 symbols in Post.getShortContent() is not enough.
      There is a need for new algorithm to be applied not to cut BB-code apart as it may confuse user.

      Consiger the following example:

      ... some post text [img] here comes image URL...

      it may be shortened as

      ... some post test [im

      that's certainly wrong

      One more improvement should be applied:
      Now the short content length is limited to 200 chars. As post content is stored with BB-codes they're included in post length calculation (although not shown as symbols). For instance, test "[b]bold text[b]" is now threated as 15-char length, but should be count as 9-char one.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                jk1 Evgeniy Naumenko
                Reporter:
                jk1 Evgeniy Naumenko
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h
                  5h

                    Structure Helper Panel