fluent-plugin-twitter icon indicating copy to clipboard operation
fluent-plugin-twitter copied to clipboard

Correct false positives in language determination.

Open shibacow opened this issue 6 years ago • 0 comments

HI twitter.user.lang has become null due to a sudden specification change of twitter streaming api.

https://developer.twitter.com/en/docs/tweets/sample-realtime/api-reference

so,now.input parameter is not work.

 lang                ja,en                    # Optional

in_twitter.rb return allways true,even a language different from the specified language.

 return false if ([email protected]? && @lang != '') && [email protected]?(tweet.user.lang)

so.therefore, I changed to use twitter.lang instead of twitter.user.lang to determine the language.

shibacow avatar May 25 '19 05:05 shibacow