mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Fix Mypy
This commit is contained in:
parent
7e75b7e7df
commit
8d12cf9571
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue