[buddypress-trac] [BuddyPress] #3354: Activity comments with embed links don't show on initial AJAX load

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Jul 18 22:51:39 UTC 2011


#3354: Activity comments with embed links don't show on initial AJAX load
--------------------+-----------------
 Reporter:  DJPaul  |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  1.4
Component:  Core    |    Version:  1.3
 Keywords:          |
--------------------+-----------------
 When posting, for example, a youtube link into an activity stream comment
 (or a status update), the AJAX returns the plain text version of the link.
 When the page is refreshed, the embed is loaded.

 This is because DTheme's ajax implementation seems to happen before the
 bp_init hook is fired. If you hard-code a call to bp_embed_init() in the
 ajax handler, it fixes this problem. However, if you're posting a status
 update, there is also some javascript to copy your most recent activity
 into span.activity in the member header... it copies the html from the
 ajax response, so  you also get a youtube box in there.

 I've put this ticket to 1.4 as I can't see an easy way around it as it
 seems its caused by DTheme 1.3's javascript. Re-hooking all the AJAX calls
 is too big a task for the 1.3 beta release.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3354>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list