mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Bugfixes
This commit is contained in:
parent
1338d99994
commit
ef7a887146
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue