]> Untitled Git - lemmy.git/commit
Remove GetCommunityResponse.default_post_language (#2867)
authorNutomic <me@nutomic.com>
Sun, 21 May 2023 15:55:32 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 15:55:32 +0000 (11:55 -0400)
commit82d93da26bd1bd93e7119090d2b95b546d90b725
tree63a4da538334197f22075a76c0c8f12832dcb08e
parenta9d708f494d3c6c62d4a88ee0a03a42444697499
Remove GetCommunityResponse.default_post_language (#2867)

This field is unnecessary because we already set a default language
with the same logic if none is passed in CreatePost. So if the user
doesnt set a post language, it should simply be passed as None. This
also has the advantage that it works with clients that dont support
language tags.

Technically not a breaking change because its optional, but better
be safe.
crates/api/src/community/transfer.rs
crates/api_common/src/community.rs
crates/apub/src/api/read_community.rs