only fist first_item once

This commit is contained in:
jesopo 2019-09-25 16:14:48 +01:00
parent 5923602f0a
commit 67cd14da5a

View file

@ -84,6 +84,7 @@ class Module(ModuleManager.BaseModule):
for item in items:
if item["object"]["inReplyTo"] == None:
first_item = item
break
if not first_item:
raise utils.EventError("No toots found")