Module Twitter (not Twitter Action, sorry for the mistake) on Drupal 7.22
Once the filter Twitter #hashtag converter is selected into
Configuration -> Text formats -> _SELECT_YOUR_FORMAT_ -> Enable filters -> Twitter #hashtag converter
Writing an Hashtag into a field, it is converted into a link to Twitter as described here
"Converts Twitter-style #hashtags into links to hashtags.org."
But the converted hashtag has wrong address, which leads always to a non existing page on Twitter.
For instance;: if I write the hashtag: #Tomorrow, the converted link is:
https://search.twitter.com/search?q=%23Tomorrow
which leads to "Sorry, that page doesn’t exist! Thanks for noticing—we're going to fix it up and have things back to normal soon."
The correct address should be:
https://twitter.com/search?q=%23Tomorrow&src=hash
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | twitter-change_seach_url-1982884-11.patch | 1.23 KB | estoyausente |
| #10 | twitter-hashtag_returns_wrong_address-1982884-10.patch | 1.37 KB | thomas.fleming |
| #9 | 1982884_9.patch | 1.13 KB | royal121 |
| #8 | 1982884_8.patch | 1.13 KB | royal121 |
| #7 | twitter_hashtag-links_1982884_7.patch | 1.23 KB | jamix |
Comments
Comment #1
HyperD commentedTo make it works, I made these modifications:
Pay attention: it's necessary to uninstall the module also clicking on the tab Uninstall.
After the modification, reinstall the module
Of course it's possible to change the setup in Configuration -> Twitter.
However in the manner above, the module has already the correct settings by default.
Comment #2
plopescHello,
Attaching patch which tries to fix this bug, basically changes the default twitter_search url, adds a $suffix parameter to
_twitter_filter_textto add the new$srcparameter and changes the filter tip dependingon the twitter_search variable.Patch has been tested against 7.x-5.x and 7.x-6.x branches.
Regards
Comment #3
plopescPatch and changing status.
Comment #4
HyperD commentedThank you very much Plopesc
Comment #5
jamix commentedIntroducing
$suffixis not necessary because the following happily works:https://twitter.com/search?q=%23TomorrowI.e. we should just change the search prefix from
http://search.twitter.com/tohttps://twitter.com/.Comment #6
jamix commentedChanging issue status.
Comment #7
jamix commentedAttaching (the much simpler) patch.
Comment #7.0
jamix commentedCorrections
Comment #8
royal121 commentedHere's re-rolled patch.
Comment #9
royal121 commentedComment #10
thomas.fleming commentedPatch wouldn't apply against 5.8. It was trying to apply to newtwitter.module. Rerolled. Needs to be tested against 6.
Comment #11
estoyausente@tidrif I can't apply the patch, it have wrong base path. It have to be without 'sites/all/modules/contrib/twitter'.
I upload again. Please, review it.
Comment #12
juampynr commentedDuplicate of #2182945: Update Search to Twitter API v1.1.