only fist first_item once
This commit is contained in:
parent
5923602f0a
commit
67cd14da5a
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
for item in items:
|
for item in items:
|
||||||
if item["object"]["inReplyTo"] == None:
|
if item["object"]["inReplyTo"] == None:
|
||||||
first_item = item
|
first_item = item
|
||||||
|
break
|
||||||
|
|
||||||
if not first_item:
|
if not first_item:
|
||||||
raise utils.EventError("No toots found")
|
raise utils.EventError("No toots found")
|
||||||
|
|
Loading…
Reference in a new issue