First off- I’ve been stalking the Xibo Community forums for a while, and I just wanted to say how much I love the effort y’all put into supporting everyone. Bravo!
I’ve installed and configured the Twitter Module and successfully got it to pull Tweets. This is for a convention, so the tweets need to be moderated to avoid non-family friendly content. I accomplished this by creating a new Twitter account and setting my search parameters to user:RTXPics filter:nativeretweets. This pulls just the content I’ve retweeted.
Unfortunately, filter:nativeretweets is not returning what I expect. There’s two search options for retweeting - filter:nativeretweets and filter:retweets. nativeretweets should return the tweet as if posted by the original tweeter. retweets option should show it as an old style “RT @foo…” retweet. This is per this Twitter help page.! image|539x104
I would like to credit the original tweeter by using [User] somewhere in the template, which is what I expected by using nativeretweets. Using either option returns the @RTXPics username.
Is this the expected functionality or am I doing something incorrectly?
Thank you for your help!
I’m not sure if Twitter changed something in that regard lately or perhaps the Twitter Search API works in a slightly different way.
In any case, currently if the tweet has
retweeted_status, which I believe both nativeretweets and retweets will have, this will happen - https://github.com/xibosignage/xibo-cms/blob/release18/lib/Widget/Twitter.php#L620
Now, without that condition, the retweets were truncated with (…) ie not ideal, hence why we added it.
full_text from the
retweeted_status did show whole tweet text ie no longer truncated, but it did also remove the
RT @account: from the tweet text, as such it is added in the code now.
As far as I can tell, if I remove the strings from the code, then Twitter will return just the tweet text in both cases (nativeretweets / retweets filter). Which I don’t think is ideal as you’d have no way of knowing if that tweet is a RT or not? I might be missing something there though, as I’m not using Twitter too much.
At the moment I’m not sure if/how we could make it better and still reliable.
Thank you for the reply!
In my use case, I would rather not have anyone know it was a retweet. Were it not for the need to moderate what is displayed, I could just do a search for the event’s hashtag.
No worries! I’ll see what I can cobble together via RSS feeds.