lemmy/crates/db_schema/src/source
Nutomic 2ef0f8f5f8
implement language tags for site/community in db and api (#2434)
* implement language tags for site/community in db and api

* add api checks for valid languages

* during db migration, update existing users, sites, communities to have all languages enabled

* init new users/communities with site languages (not all languages)

* federate site/community languages

* fix tests

* when updating site languages, limit community languages to this subset

also, when making a new post and subset of user lang, community lang
contains only one item, use that as post lang

* add tests for actor_language db functions

* include language list in siteview/communityview

* Fix some of the review comments

* Some more review changes

* Add todo about boxed query

* Add default_post_language to GetCommunityResponse
2022-10-06 14:27:58 -04:00
..
activity.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
actor_language.rs implement language tags for site/community in db and api (#2434) 2022-10-06 14:27:58 -04:00
comment.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
comment_reply.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
comment_report.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
community.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
community_block.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
email_verification.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
language.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
local_user.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
local_user_language.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
mod.rs implement language tags for site/community in db and api (#2434) 2022-10-06 14:27:58 -04:00
moderator.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
password_reset_request.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
person.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
person_block.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
person_mention.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
post.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
post_report.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
private_message.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
private_message_report.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
registration_application.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
secret.rs Diesel 2.0.0 upgrade (#2452) 2022-09-26 14:09:32 +00:00
site.rs implement language tags for site/community in db and api (#2434) 2022-10-06 14:27:58 -04:00