0
Solucionado

Twitter using #hashtags doesn't work

Ben Coley hace 13 años actualizado por martinbeeby hace 13 años 1

If you use a #hashtag then it searches for the text, rather than #text.  Example, I set up a Twitter group to use #astonmartin, but instead of returning all tweets with #astonmartin in them, it returns tweets from users with names like 'iloveastonmartins' or 'astonmartin_owner', in other words it ignores the # when it submits the JSON query to Twitter :-)

Respuesta

Respuesta
Solucionado

This is now fixed on the live site

Wrote a fix for this (sits inside doTwitterUpdate in provider.js, after if(user) {...} block:

 

<code>

 

if ((user == null) || (user == ""))

     user = "#";

search = search.trim();

 

</code>

 

As in the case of @astonmartin, user = "from:astonmartin" and search = "",

but in the case of #astonmartin, user = "" and search = " astonmartin".

 

Hope this helps!

Respuesta
Solucionado

This is now fixed on the live site