[buddypress-trac] [BuddyPress Trac] #6554: No excerpts for blog posts in activity after BP upgrade

buddypress-trac noreply at wordpress.org
Tue Jul 14 19:23:05 UTC 2015

#6554: No excerpts for blog posts in activity after BP upgrade
 Reporter:  schwarzaufweiss       |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Component - Activity  |     Version:  2.3.2
 Severity:  normal                |  Resolution:
 Keywords:  reporter-feedback     |
Changes (by imath):

 * keywords:   => reporter-feedback


 Hi @schwarzaufweiss

 I think, the problem might have been caused by your premium theme or a
 specific plugin.

 When an activity is generated for a newly published post, we directly save
 an excerpt into the content field of the activity table. If you have the
 full content, this means something (theme or plugin) was overriding our
 behavior to save the full content.

 Before 2.3, each activity was truncated, that's why you had the impression
 an excerpt was used for posts see:

 Since 2.3 if the activity is a new blog post, it's not truncated, see :

 I can see a good reason for this, but maybe @djpaul can explain it to you
 better than i'd do. I think as we are already saving an excerpt for the
 `new_blog_post` activity, there's no reason to truncate the activity as it
 already is in DB.

 If you need to have the activity truncated for `new_blog_post` activity
 like it was the case before 2.3 the one thing (theme or plugin) who's
 overriding BuddyPress behavior (to save full content instead of the
 excerpt of it) should simply use this filter :

 `add_filter( 'bp_activity_maybe_truncate_entry', '__return_true' );`

 If that's ok for you, i think we can close this ticket because imho it's
 not a BuddyPress bug.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6554#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list