diff --git a/plemmy/lemmyhttp.py b/plemmy/lemmyhttp.py index d8fc2d3..37abc28 100644 --- a/plemmy/lemmyhttp.py +++ b/plemmy/lemmyhttp.py @@ -1016,7 +1016,8 @@ def get_posts(self, community_id: int = None, community_name: str = None, sort (str): "Active", "Hot", "MostComments", "New", "NewComments", "Old", "TopAll", "TopDay", "TopMonth", "TopWeek", "TopYear" (optional) - type_ (str): "All", "Community", "Local", "Subscribed" (optional) + type_ (str): "All", "Local", "Subscribed", "ModeratorView" + (optional) Returns: requests.Response: result of API call diff --git a/plemmy/objects.py b/plemmy/objects.py index eac8be9..74394b6 100644 --- a/plemmy/objects.py +++ b/plemmy/objects.py @@ -132,6 +132,7 @@ class Community: instance_id: int = None updated: str = None banner: bool = None + visibility: str = None @dataclass @@ -202,7 +203,7 @@ class Instance: software: str = None updated: str = None version: str = None - federation_state: FederationState | None = None + federation_state: FederationState = None @dataclass