Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First, thanks for this module. It works as described, and is written really well.
The following patch runs the core URL filter on the message text before caching. This was necessary for a client project, and I saw another person in the queue that wanted this feature.
Comment | File | Size | Author |
---|---|---|---|
#4 | facebook_pull-convert_urls-1869516-4.patch | 1.26 KB | tostinni |
#1 | facebook_pull-convert_urls-1869516-1.patch | 862 bytes | mdeltito |
Comments
Comment #1
mdeltito CreditAttribution: mdeltito commentedComment #2
Jaapx CreditAttribution: Jaapx commentedThis patch works very well. Ik had to add it by hand because the module code has changed a little bit.
Thank you for publishing!
Comment #3
tostinni CreditAttribution: tostinni at Agence Propal commentedAlthough this works fine, it is using a private function
_filter_url()
.So here is an improved patch to support this feature and improve it by passing Facebook message through Drupal's
check_markup()
function so you can add any filter you want.I also added an admin settings to chose which filter should be applied.
Comment #4
tostinni CreditAttribution: tostinni at Agence Propal commentedSmall fix on my patch to move the sanitization to preprocess where it belongs.