diff options
| author | 2019-11-26 14:31:22 +0000 | |
|---|---|---|
| committer | 2019-11-26 14:31:22 +0000 | |
| commit | 8bb20bcb1740d8838e7ba0cc50c7ba656cc747f2 (patch) | |
| tree | f81d393776ee4913a0613f1b3f5f3172d661f65a /modules | |
| parent | show urls in !wikipedia output (diff) | |
| signature | ||
default `first_item` to None or it doesn't exist when there's no toots
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/fediverse/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/fediverse/__init__.py b/modules/fediverse/__init__.py index 362caf57..f80607d3 100644 --- a/modules/fediverse/__init__.py +++ b/modules/fediverse/__init__.py @@ -117,13 +117,13 @@ class Module(ModuleManager.BaseModule): except ap_utils.FindActorException as e: raise utils.EventError(str(e)) - actor = ap_actor.Actor(actor_url) if not actor.load(): raise utils.EventError("Failed to load user") items = actor.outbox.load() nonreply = [actor.followers] + first_item = None for item in items: if item["type"] == "Announce" or item["object"]["cc"] == nonreply: first_item = item |
