Turn hashtags into links
This commit is contained in:
parent
dce0fa160c
commit
0bccbc0b6b
2 changed files with 30 additions and 1 deletions
5
hrafn.py
5
hrafn.py
|
@ -346,6 +346,7 @@ class Hrafn():
|
|||
new_pane.connect('tweet-in-reply-to', self.on_reply_to)
|
||||
new_pane.connect('tweet-conversation', self.on_conversation)
|
||||
new_pane.connect('show-user', self.show_user_callback)
|
||||
new_pane.connect('show-hashtag', self.show_hashtag)
|
||||
|
||||
# Special logic for single tweet pane
|
||||
if single_tweet is not None:
|
||||
|
@ -419,6 +420,10 @@ class Hrafn():
|
|||
self.show_user(data)
|
||||
|
||||
|
||||
def show_hashtag(self, widget, data):
|
||||
self.add_to_notebook('#' + data)
|
||||
|
||||
|
||||
def on_at_button_clicked(self, widget, user_name):
|
||||
self.add_to_notebook('@' + user_name)
|
||||
|
||||
|
|
Reference in a new issue