1 use crate::newtypes::DbUrl;
4 #[cfg(feature = "full")]
6 pub mod actor_language;
7 pub mod captcha_answer;
10 pub mod comment_report;
12 pub mod community_block;
14 pub mod custom_emoji_keyword;
15 pub mod email_verification;
16 pub mod federation_allowlist;
17 pub mod federation_blocklist;
21 pub mod local_site_rate_limit;
24 pub mod password_reset_request;
27 pub mod person_mention;
30 pub mod private_message;
31 pub mod private_message_report;
32 pub mod registration_application;
37 /// Default value for columns like [community::Community.inbox_url] which are marked as serde(skip).
39 /// This is necessary so they can be successfully deserialized from API responses, even though the
40 /// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler.
41 fn placeholder_apub_url() -> DbUrl {
43 Url::parse("http://example.com").expect("parse placeholer url"),