From 209d1a90722291671ae2264f01579f956da1084e Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 30 Aug 2022 13:25:05 +0300 Subject: [PATCH] Pleroma: fallback value in account.discoverable --- .gitignore | 3 ++- mastoposter/types.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6f9578f..7e7acb0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ config-*.ini venv # :3 -tmp.py +tmp*.py +test-data diff --git a/mastoposter/types.py b/mastoposter/types.py index 73376e9..ecffd2f 100644 --- a/mastoposter/types.py +++ b/mastoposter/types.py @@ -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"],