projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
247c4e8
)
Be sure to always include nick of person replied to with repall even if it's the...
author
Jeppe Toustrup
<tenzer@tenzer.dk>
Fri, 27 Feb 2015 06:53:11 +0000
(07:53 +0100)
committer
Jeppe Toustrup
<tenzer@tenzer.dk>
Fri, 27 Feb 2015 06:53:11 +0000
(07:53 +0100)
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 8dbd89c6d2ce01edda8e41858e01a565015ccbbd..9aa5d448529d2ae1c82a1811d63fe6c21c76bbda 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-532,10
+532,9
@@
def reply_all():
text = original_tweet['text']
nick_ary = [original_tweet['user']['screen_name']]
for user in tweet['entities']['user_mentions']:
text = original_tweet['text']
nick_ary = [original_tweet['user']['screen_name']]
for user in tweet['entities']['user_mentions']:
- if user['screen_name'] not in nick_ary:
+ if user['screen_name'] not in nick_ary \
+ and user['screen_name'] != g['original_name']:
nick_ary.append(user['screen_name'])
nick_ary.append(user['screen_name'])
- if g['original_name'] in nick_ary:
- nick_ary.remove(g['original_name'])
status = ' '.join(g['stuff'].split()[1:])
status = ' '.join(['@' + nick for nick in nick_ary]) + ' ' + str2u(status)
t.statuses.update(status=status, in_reply_to_status_id=tid)
status = ' '.join(g['stuff'].split()[1:])
status = ' '.join(['@' + nick for nick in nick_ary]) + ' ' + str2u(status)
t.statuses.update(status=status, in_reply_to_status_id=tid)