1
0
Fork 0

Pleroma: fallback value in account.discoverable

This commit is contained in:
Casey 2022-08-30 13:25:05 +03:00
parent 0274bbe186
commit 209d1a9072
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ config-*.ini
venv
# :3
tmp.py
tmp*.py
test-data

View File

@ -89,7 +89,7 @@ class Account:
header_static=data["header_static"],
locked=data["locked"],
emojis=list(map(Emoji.from_dict, data["emojis"])),
discoverable=data["discoverable"],
discoverable=data.get("discoverable", False),
created_at=_date(data["created_at"]),
last_status_at=_date(data["last_status_at"]),
statuses_count=data["statuses_count"],