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

Automatically create twitter hashtags from tags #478

Open
cweiske opened this Issue Sep 18, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@cweiske

cweiske commented Sep 18, 2015

POSSEing articles to twitter should automatically append hashtags for the tags used on the article.

An article "Hello world", tagged with first and test should get a twitter line "Hello world #first #test".

When the tag is already part of the title, the word should be converted to a hashtag:

"Playing Tomb Raider 1 on OUYA" should get tweeted as "Playing Tomb Raider 1 on #OUYA" when it was tagged with "ouya".

@snarfed

This comment has been minimized.

Show comment
Hide comment
@snarfed

snarfed Sep 18, 2015

Owner

thanks for filing!

example post: http://cweiske.de/tagebuch/ouya-tomb-raider.htm

parsed as mf2 (https://kylewm.com/services/mf2?url=http://cweiske.de/tagebuch/ouya-tomb-raider.htm):

{"items": [{
  "type": ["h-entry"],
  "properties": {
    "category": ["bigsuck", "games", "ouya"],
    "name": ["Playing Tomb Raider 1 on OUYA"],
...

ideally we'd look at the categories, hashtag the ones in the title in place, ignoring case, and append the rest. something like:

Playing Tomb Raider 1 on #OUYA [#bigsuck #games]

Owner

snarfed commented Sep 18, 2015

thanks for filing!

example post: http://cweiske.de/tagebuch/ouya-tomb-raider.htm

parsed as mf2 (https://kylewm.com/services/mf2?url=http://cweiske.de/tagebuch/ouya-tomb-raider.htm):

{"items": [{
  "type": ["h-entry"],
  "properties": {
    "category": ["bigsuck", "games", "ouya"],
    "name": ["Playing Tomb Raider 1 on OUYA"],
...

ideally we'd look at the categories, hashtag the ones in the title in place, ignoring case, and append the rest. something like:

Playing Tomb Raider 1 on #OUYA [#bigsuck #games]

@snarfed snarfed added the publish label Sep 19, 2015

kylewm added a commit to snarfed/granary that referenced this issue Jan 8, 2016

kylewm added a commit to snarfed/granary that referenced this issue Jan 8, 2016

@anm

This comment has been minimized.

Show comment
Hide comment
@anm

anm Apr 29, 2018

I would prefer it to not tag the words if previously used, but just put all the tags at the end, because it looks nicer. If you want to complicate it though, you could still do it if the tweet is too big otherwise.

anm commented Apr 29, 2018

I would prefer it to not tag the words if previously used, but just put all the tags at the end, because it looks nicer. If you want to complicate it though, you could still do it if the tweet is too big otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment