2023-07-03 13:14:01 +00:00
|
|
|
use crate::newtypes::DbUrl;
|
|
|
|
use url::Url;
|
|
|
|
|
2022-05-03 17:44:13 +00:00
|
|
|
#[cfg(feature = "full")]
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod activity;
|
2022-10-06 18:27:58 +00:00
|
|
|
pub mod actor_language;
|
2023-06-27 10:38:53 +00:00
|
|
|
pub mod captcha_answer;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod comment;
|
2022-07-30 03:55:59 +00:00
|
|
|
pub mod comment_reply;
|
2020-12-17 03:03:03 +00:00
|
|
|
pub mod comment_report;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod community;
|
2021-08-19 20:54:15 +00:00
|
|
|
pub mod community_block;
|
2023-03-20 21:32:31 +00:00
|
|
|
pub mod custom_emoji;
|
|
|
|
pub mod custom_emoji_keyword;
|
2021-12-15 19:49:59 +00:00
|
|
|
pub mod email_verification;
|
2022-10-27 09:24:07 +00:00
|
|
|
pub mod federation_allowlist;
|
|
|
|
pub mod federation_blocklist;
|
2023-11-06 21:07:04 +00:00
|
|
|
pub mod federation_queue_state;
|
2023-09-06 13:13:30 +00:00
|
|
|
pub mod image_upload;
|
2022-10-27 09:24:07 +00:00
|
|
|
pub mod instance;
|
2023-09-20 09:56:13 +00:00
|
|
|
pub mod instance_block;
|
2022-08-18 19:11:19 +00:00
|
|
|
pub mod language;
|
2022-10-27 09:24:07 +00:00
|
|
|
pub mod local_site;
|
|
|
|
pub mod local_site_rate_limit;
|
2021-03-11 04:43:11 +00:00
|
|
|
pub mod local_user;
|
2023-10-09 10:46:12 +00:00
|
|
|
pub mod login_token;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod moderator;
|
|
|
|
pub mod password_reset_request;
|
2021-03-11 04:43:11 +00:00
|
|
|
pub mod person;
|
2021-08-19 20:54:15 +00:00
|
|
|
pub mod person_block;
|
2021-03-11 04:43:11 +00:00
|
|
|
pub mod person_mention;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod post;
|
2020-12-17 03:03:03 +00:00
|
|
|
pub mod post_report;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod private_message;
|
2022-09-19 22:58:42 +00:00
|
|
|
pub mod private_message_report;
|
2021-12-15 19:49:59 +00:00
|
|
|
pub mod registration_application;
|
2021-09-20 15:46:34 +00:00
|
|
|
pub mod secret;
|
2020-12-13 17:04:42 +00:00
|
|
|
pub mod site;
|
2022-11-19 14:48:29 +00:00
|
|
|
pub mod tagline;
|
2023-07-03 13:14:01 +00:00
|
|
|
|
|
|
|
/// Default value for columns like [community::Community.inbox_url] which are marked as serde(skip).
|
|
|
|
///
|
|
|
|
/// This is necessary so they can be successfully deserialized from API responses, even though the
|
|
|
|
/// value is not sent by Lemmy. Necessary for crates which rely on Rust API such as lemmy-stats-crawler.
|
|
|
|
fn placeholder_apub_url() -> DbUrl {
|
|
|
|
DbUrl(Box::new(
|
|
|
|
Url::parse("http://example.com").expect("parse placeholer url"),
|
|
|
|
))
|
|
|
|
}
|