From 8d12cf9571ba5f1c9197410a9e07653b4930b352 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 15 Jul 2019 23:22:57 +0200 Subject: [PATCH] Fix Mypy --- activitypub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activitypub.py b/activitypub.py index 8b5797e..d00038e 100644 --- a/activitypub.py +++ b/activitypub.py @@ -126,7 +126,7 @@ class MicroblogPubBackend(Backend): pass object_visibility = None if object_id: - object_visibility = ap.get_visibility(activity.get_object()) + object_visibility = ap.get_visibility(activity.get_object()).name actor_id = activity.get_actor().id @@ -144,7 +144,7 @@ class MicroblogPubBackend(Backend): "visibility": visibility.name, "actor_id": actor_id, "object_id": object_id, - "object_visibility": object_visibility.name, + "object_visibility": object_visibility, "poll_answer": False, }, }