This commit is contained in:
Thomas Sileo 2018-06-18 22:04:24 +02:00
parent 1338d99994
commit ef7a887146
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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"