Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lyse
tt
Commits
ceecd9d4
Commit
ceecd9d4
authored
Sep 19, 2021
by
Lysander Trischler
Browse files
Don't reply to oneself
parent
4fc899fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tt
View file @
ceecd9d4
...
...
@@ -453,10 +453,12 @@ class TwtForm(urwid.ListBox):
def
_collect_authors
(
self
,
twt
):
authors
=
[
twt
.
source
]
authors
=
[]
if
twt
.
source
.
url
!=
config
.
twturl
:
authors
.
append
(
twt
.
source
)
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
:
authors
.
append
(
reply_author
)
return
authors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment