Opened 10 years ago
Closed 10 years ago
#5990 closed defect (bug) (fixed)
bp_use_embed_in_private_messages() does nothing
Reported by: | slaFFik | Owned by: | |
---|---|---|---|
Milestone: | 2.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Messages | Keywords: | has-patch |
Cc: |
Description
In general what I tried to achieve: give users ability to use oEmbed in personal messages.
There is a filter for this in bp_use_embed_in_private_messages()
.
Changing its value to true
doesn't convert youtube links to embeds in private messages just like in activity stream updates. Which is a bit annoying.
Possible reason: bp_get_the_thread_message_content()
(which has the filter oEmbed uses) is not called when ajax posting is submitted. But the old messages with the youtube links are not converted as well, so the problem is somewhere deeper.
Attachments (1)
Change History (9)
This ticket was mentioned in Slack in #buddypress by slaffik. View the logs.
10 years ago
#3
@
10 years ago
Tested on WordPress 4.0, BuddyPress 2.1.1, 2012 theme and BP Default - it works.
Good catch, slaFFik. I don't think this ever worked correctly.
I've attached a patch that should fix this. Note that there isn't any oEmbed caching because there isn't a messages meta table.