Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use OR for twitter widget and disable retweets #115

Closed
wants to merge 2 commits into from

Conversation

wilzbach
Copy link
Member

@wilzbach wilzbach commented May 1, 2016

See: http://forum.dlang.org/thread/uakjmhiwkvvveeekzkgw@forum.dlang.org

Ignores retweets on the Twitter widget.
Moreover I added the DMD compiler env constant to the makefile if it isn't defined.

@@ -2,6 +2,10 @@ ifeq (,$(OUT))
$(error you must define OUT)
endif

ifeq (,$(DMD))
DMD = ../../dmd/src/dmd
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or is just DMD = dmd better?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, DMD=dmd with no ifeq

@wilzbach wilzbach force-pushed the ignore_retweets branch from 5cdf109 to 2bd9fd6 Compare May 3, 2016 17:49
@wilzbach
Copy link
Member Author

wilzbach commented May 3, 2016

changed dmd to dmd and created a new twitter id. Sorry for letting this wait so long.
@aG0aep6G as you already control the one at dlang.org, would be more than happy if you create this one ;-)

@@ -79,7 +79,7 @@ $(DIV class="page_right equal",
)
$(DIV class="twitter",
$(DIV class="hash", )
<a class="twitter-timeline" href="https://twitter.com/search?q=%23dconf+%23dlang" data-widget-id="405059685734023169">Tweets about "#dconf #dlang"</a>
<a class="twitter-timeline" href="https://twitter.com/search?q=%23dconf+%23dlang-RT" data-widget-id="726813389926883328">Tweets about "#dconf #dlang"</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this misses a plus sign in the href value, before -RT. Maybe just copy the code that Twitter gives you.

@aG0aep6G
Copy link
Contributor

aG0aep6G commented May 3, 2016

@aG0aep6G as you already control the one at dlang.org, would be more than happy if you create this one ;-)

I don't want to control them either. I don't even use Twitter.

@wilzbach wilzbach force-pushed the ignore_retweets branch from 2bd9fd6 to 807ae1e Compare May 3, 2016 18:06
@wilzbach
Copy link
Member Author

wilzbach commented May 3, 2016

I think this misses a plus sign in the href value, before -RT. Maybe just copy the code that Twitter gives you.

done ;-)

@@ -79,7 +79,7 @@ $(DIV class="page_right equal",
)
$(DIV class="twitter",
$(DIV class="hash", )
<a class="twitter-timeline" href="https://twitter.com/search?q=%23dconf+%23dlang" data-widget-id="405059685734023169">Tweets about "#dconf #dlang"</a>
<a class="twitter-timeline" href="https://twitter.com/search?q=%23dconf%20%23dlang%20-RT" data-widget-id="726813389926883328">Tweets about "#dconf #dlang"</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added an extra space now, before href. Or does Twitter give it out like that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but i can also remove it ;-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw I realized that according to the twitter search we should better use an "OR", otherwise the operators will be joined...

@wilzbach wilzbach force-pushed the ignore_retweets branch from 807ae1e to 6f4af76 Compare May 3, 2016 18:14
@wilzbach
Copy link
Member Author

wilzbach commented May 3, 2016

update: it turns out that we have a real bug here - we join the twitter hashtags. According to the twitter search API we should use an "OR".

@wilzbach wilzbach changed the title Ignore retweets Use OR for twitter widget and disable retweets May 3, 2016
@aG0aep6G
Copy link
Contributor

aG0aep6G commented May 3, 2016

update: it turns out that we have a real bug here - we join the twitter hashtags. According to the twitter search API we should use an "OR".

I'm not so sure about that. There's a config tool called dconf, and apparently another conference going by the same name. It may have been the plan to always use both #dlang and #dconf to avoid confusion. Also, posts with just #dlang aren't so interesting on the dconf site.

@wilzbach
Copy link
Member Author

wilzbach commented May 3, 2016

It may have been the plan to always use both #dlang and #dconf to avoid confusion. Also, posts with just #dlang aren't so interesting on the dconf site.

I think everyone is just using "#dconf", see:
https://twitter.com/search?q=%23dconf

@aG0aep6G
Copy link
Contributor

aG0aep6G commented May 3, 2016

I think everyone is just using "#dconf"

Maybe go with just #dconf then. False positives may be the lesser evil. I don't think we need tweets with just #dlang on dconf.org, so I'm not for #dconf OR #dlang. I don't feel strongly about this, though.

@wilzbach
Copy link
Member Author

wilzbach commented May 5, 2016

I don't feel strongly about this, though.

It's just that over the entire year "#dconf" is not used a lot, so the widget will look "old". I think that the author of this wanted to have both tags with "or", but didn't know that they are "and" joined.

ping @CyberShadow - can we get this in while #dconf is still running? ;-)

@andralex
Copy link
Member

andralex commented May 6, 2016

Sorry this didn't get sorted out - will close for now. Thx!

@andralex andralex closed this May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants