It's a common practice by Twitter users, when a reference to an account has to be put in first position without being a direct message, to precede it with a point (.@account).
This causes an undesired formatting in the link, which is formatted as a mailto link by core's filter.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | twitter-n2353371-16-6.x-5.x.patch | 6.37 KB | damienmckenna |
| #15 | twitter-n2353371-15-7.x-5.x.patch | 7.38 KB | damienmckenna |
| #14 | twitter-n2353371-13-7.x-6.x.patch | 7.38 KB | damienmckenna |
Comments
Comment #1
filippo.ledda commentedHere is a simple patch, adding the particular case and calling filter at the end of the process. Can be surely perfected to be more general.
Comment #2
filippo.ledda commentedSetting to needs review, the patch is now some months working and may be easily included in next releases.
Comment #4
damienmckennaRerolled, and fixed some minor coding standards mistakes.
Comment #5
damienmckennaI wonder if it'd work without the period in front of the @ symbol?
Comment #6
damienmckennaComment #7
damienmckennaAdded a comment. This is for 7.x-5.x.
Comment #8
damienmckennaThis is for 7.x-6.x.
Comment #9
damienmckennaThis is for 6.x-5.x.
Comment #10
damienmckennaSo I did some more testing and it turns out that the problem was a little more complicated - the patch didn't fix the problem and it also wasn't going to fix the "Formatted tweet" views field. I've moved the text formatting into its own function twitter_filter_message() and reworked the output to use it.
This patch is for 7.x-5.x.
Comment #11
damienmckennaThis has been refactored to leverage the existing text filter functions. I've also improved those functions slightly by making the $filter argument optional and by giving them some documentation.
Comment #12
damienmckennaPorted to 7.x-6.x.
Comment #14
damienmckennaA slightly updated patch for 7.x-6.x.
Comment #15
damienmckennaFor 7.x-5.x.
Comment #16
damienmckennaFor 6.x-5.x.
Comment #17
damienmckennaComment #19
damienmckennaCommitted.