Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes #41

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plemmy/lemmyhttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion plemmy/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class Community:
instance_id: int = None
updated: str = None
banner: bool = None
visibility: str = None


@dataclass
Expand Down Expand Up @@ -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
Expand Down
Loading