[buddypress-trac] [BuddyPress] #3203: member profile latest update inconsistency between page refresh/ajax load

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon May 9 21:34:08 UTC 2011


#3203: member profile latest update inconsistency between page refresh/ajax load
-----------------------+-----------------
  Reporter:  DJPaul    |      Owner:
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:  1.3
 Component:  Activity  |    Version:
Resolution:            |   Keywords:
-----------------------+-----------------

Comment (by boonebgorges):

 The JS that updates the header takes the update content directly from the
 AJAX response (which truncates to 358 characters), while on refresh it
 comes from bp_activity_latest_update() (which truncates to 180). Ideally,
 I'd be able to modify the JS to obey the 180 number. But because our AJAX
 handler bp_dtheme_post_update() returns HTML rather than structured data,
 this is nigh impossible. I either write a JS-equivalent of
 bp_create_excerpt(), or I rewrite the activity posting to return JSON data
 and then build the HTML in JS, or I make another AJAX call to get the
 shorter excerpt. All three of these options seem lousy, so I'm just going
 to change the default in bp_activity_latest_update().

-- 
Ticket URL: <https://trac.buddypress.org/ticket/3203#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list