Commit ceecd9d4 authored by Lysander Trischler's avatar Lysander Trischler
Browse files

Don't reply to oneself

parent 4fc899fd
......@@ -453,10 +453,12 @@ class TwtForm(urwid.ListBox):
def _collect_authors(self, twt):
authors = [twt.source]
authors = []
if twt.source.url != config.twturl:
for reply in twt.replies:
for reply_author in self._collect_authors(reply):
if reply_author not in authors:
if reply_author not in authors and reply_author.url != config.twturl:
return authors
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment