Skip to:
Content

BuddyPress.org

Opened 9 years ago

Last modified 8 years ago

#6998 new enhancement

Strip new posts text in activity feed using words counters, not chars

Reported by: slaffik's profile slaFFik Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version:
Component: Activity Keywords: needs-patch
Cc:

Description

Currently when you publish a new post, it's content is also appears on site wide activity, but stripped to a certain number of characters.
That causes situations, when some words are cut into parts, which looks bad.

I suggest to start using words counters, and not chars counter for this purpose.

Change History (2)

#1 @DJPaul
9 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

I am not sure where we are doing this currently, be we ought to be passing the string through bp_create_excerpt().

#2 @tw2113
8 years ago

Not sure if this got fixed, but I'm struggling to get it to work as described by @slaFFik. When I increase the length of a word that's right before the proverbial cutoff, at some point, that word is just no longer getting shown.

"lead Nelsons folly pirate Sail ho. Black jack scourge" Everything after the "ho." is getting cut off, so that's my breakpoint. When I make the "ho" a much longer word, it is suddenly cut off completely, and the excerpt stops at "Sail".

Note: See TracTickets for help on using tickets.