forked from hkc/mastoposter
Pleroma: fallback value in account.discoverable
This commit is contained in:
parent
0274bbe186
commit
209d1a9072
|
@ -4,4 +4,5 @@ config-*.ini
|
||||||
venv
|
venv
|
||||||
|
|
||||||
# :3
|
# :3
|
||||||
tmp.py
|
tmp*.py
|
||||||
|
test-data
|
||||||
|
|
|
@ -89,7 +89,7 @@ class Account:
|
||||||
header_static=data["header_static"],
|
header_static=data["header_static"],
|
||||||
locked=data["locked"],
|
locked=data["locked"],
|
||||||
emojis=list(map(Emoji.from_dict, data["emojis"])),
|
emojis=list(map(Emoji.from_dict, data["emojis"])),
|
||||||
discoverable=data["discoverable"],
|
discoverable=data.get("discoverable", False),
|
||||||
created_at=_date(data["created_at"]),
|
created_at=_date(data["created_at"]),
|
||||||
last_status_at=_date(data["last_status_at"]),
|
last_status_at=_date(data["last_status_at"]),
|
||||||
statuses_count=data["statuses_count"],
|
statuses_count=data["statuses_count"],
|
||||||
|
|
Loading…
Reference in New Issue