mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
reddit: fix missing comments
is_root is a root *comment*, not the main post
This commit is contained in:
parent
e1101ec592
commit
8564fc6990
1 changed files with 1 additions and 2 deletions
|
@ -142,8 +142,7 @@ class RedditNetwork(Network):
|
|||
|
||||
else:
|
||||
# reddit special: +x as a reply means tip
|
||||
# if is_root is not here, consider the item as a reply, but check parent_id
|
||||
if not is_pm and (not hasattr(item,'is_root') or not item.is_root) and hasattr(item,'parent_id'):
|
||||
if not is_pm and hasattr(item,'parent_id'):
|
||||
line=line.replace(self.keyword,'').strip()
|
||||
if re.match("\+[0-9]*\.[0-9]*",line):
|
||||
if self.on_command:
|
||||
|
|
Loading…
Reference in a new issue