From ef7a887146d683f931c0d67e3fe818047293e00f Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 18 Jun 2018 22:04:24 +0200 Subject: [PATCH] Bugfixes --- activitypub.py | 2 +- config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activitypub.py b/activitypub.py index b66171e..b2f587c 100644 --- a/activitypub.py +++ b/activitypub.py @@ -240,7 +240,7 @@ class MicroblogPubBackend(Backend): {"$set": {"meta.deleted": True}}, ) obj = delete.get_object() - if obj.ACTIVITY_TYPE != ActivityType.NOTE: + if obj.ACTIVITY_TYPE != ap.ActivityType.NOTE: obj = self.fetch_iri(delete.get_object().id) self._handle_replies_delete(as_actor, obj) diff --git a/config.py b/config.py index f552f63..44659c1 100644 --- a/config.py +++ b/config.py @@ -84,7 +84,7 @@ JWT = JSONWebSignatureSerializer(JWT_SECRET) def _admin_jwt_token() -> str: - return JWT.dumps( + return JWT.dumps( # type: ignore {"me": "ADMIN", "ts": datetime.now().timestamp()} ).decode( # type: ignore "utf-8"