forked from forks/microblog.pub
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}},
|
{"$set": {"meta.deleted": True}},
|
||||||
)
|
)
|
||||||
obj = delete.get_object()
|
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)
|
obj = self.fetch_iri(delete.get_object().id)
|
||||||
self._handle_replies_delete(as_actor, obj)
|
self._handle_replies_delete(as_actor, obj)
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ JWT = JSONWebSignatureSerializer(JWT_SECRET)
|
||||||
|
|
||||||
|
|
||||||
def _admin_jwt_token() -> str:
|
def _admin_jwt_token() -> str:
|
||||||
return JWT.dumps(
|
return JWT.dumps( # type: ignore
|
||||||
{"me": "ADMIN", "ts": datetime.now().timestamp()}
|
{"me": "ADMIN", "ts": datetime.now().timestamp()}
|
||||||
).decode( # type: ignore
|
).decode( # type: ignore
|
||||||
"utf-8"
|
"utf-8"
|
||||||
|
|
Loading…
Reference in a new issue