mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Nutomic
3565ad984a
* Remove chatserver * fix clippy * Remove captchas (fixes #2922) * fix prettier * fix api_common build * cargo fmt
355 lines
7.3 KiB
Rust
355 lines
7.3 KiB
Rust
use crate::SendActivity;
|
|
use lemmy_api_common::{
|
|
comment::{
|
|
CommentReportResponse,
|
|
CommentResponse,
|
|
DistinguishComment,
|
|
GetComment,
|
|
GetComments,
|
|
GetCommentsResponse,
|
|
ListCommentReports,
|
|
ListCommentReportsResponse,
|
|
ResolveCommentReport,
|
|
SaveComment,
|
|
},
|
|
community::{
|
|
CommunityResponse,
|
|
CreateCommunity,
|
|
GetCommunity,
|
|
GetCommunityResponse,
|
|
ListCommunities,
|
|
ListCommunitiesResponse,
|
|
TransferCommunity,
|
|
},
|
|
custom_emoji::{
|
|
CreateCustomEmoji,
|
|
CustomEmojiResponse,
|
|
DeleteCustomEmoji,
|
|
DeleteCustomEmojiResponse,
|
|
EditCustomEmoji,
|
|
},
|
|
person::{
|
|
AddAdmin,
|
|
AddAdminResponse,
|
|
BannedPersonsResponse,
|
|
BlockPerson,
|
|
BlockPersonResponse,
|
|
ChangePassword,
|
|
CommentReplyResponse,
|
|
GetBannedPersons,
|
|
GetCaptcha,
|
|
GetCaptchaResponse,
|
|
GetPersonDetails,
|
|
GetPersonDetailsResponse,
|
|
GetPersonMentions,
|
|
GetPersonMentionsResponse,
|
|
GetReplies,
|
|
GetRepliesResponse,
|
|
GetReportCount,
|
|
GetReportCountResponse,
|
|
GetUnreadCount,
|
|
GetUnreadCountResponse,
|
|
Login,
|
|
LoginResponse,
|
|
MarkAllAsRead,
|
|
MarkCommentReplyAsRead,
|
|
MarkPersonMentionAsRead,
|
|
PasswordChangeAfterReset,
|
|
PasswordReset,
|
|
PasswordResetResponse,
|
|
PersonMentionResponse,
|
|
Register,
|
|
SaveUserSettings,
|
|
VerifyEmail,
|
|
VerifyEmailResponse,
|
|
},
|
|
post::{
|
|
GetPost,
|
|
GetPostResponse,
|
|
GetPosts,
|
|
GetPostsResponse,
|
|
GetSiteMetadata,
|
|
GetSiteMetadataResponse,
|
|
ListPostReports,
|
|
ListPostReportsResponse,
|
|
MarkPostAsRead,
|
|
PostReportResponse,
|
|
PostResponse,
|
|
ResolvePostReport,
|
|
SavePost,
|
|
},
|
|
private_message::{
|
|
CreatePrivateMessageReport,
|
|
GetPrivateMessages,
|
|
ListPrivateMessageReports,
|
|
ListPrivateMessageReportsResponse,
|
|
MarkPrivateMessageAsRead,
|
|
PrivateMessageReportResponse,
|
|
PrivateMessageResponse,
|
|
PrivateMessagesResponse,
|
|
ResolvePrivateMessageReport,
|
|
},
|
|
site::{
|
|
ApproveRegistrationApplication,
|
|
CreateSite,
|
|
EditSite,
|
|
GetFederatedInstances,
|
|
GetFederatedInstancesResponse,
|
|
GetModlog,
|
|
GetModlogResponse,
|
|
GetSite,
|
|
GetSiteResponse,
|
|
GetUnreadRegistrationApplicationCount,
|
|
GetUnreadRegistrationApplicationCountResponse,
|
|
LeaveAdmin,
|
|
ListRegistrationApplications,
|
|
ListRegistrationApplicationsResponse,
|
|
PurgeComment,
|
|
PurgeCommunity,
|
|
PurgeItemResponse,
|
|
PurgePerson,
|
|
PurgePost,
|
|
RegistrationApplicationResponse,
|
|
ResolveObject,
|
|
ResolveObjectResponse,
|
|
Search,
|
|
SearchResponse,
|
|
SiteResponse,
|
|
},
|
|
};
|
|
|
|
impl SendActivity for Register {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPersonDetails {
|
|
type Response = GetPersonDetailsResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPrivateMessages {
|
|
type Response = PrivateMessagesResponse;
|
|
}
|
|
|
|
impl SendActivity for CreateSite {
|
|
type Response = SiteResponse;
|
|
}
|
|
|
|
impl SendActivity for EditSite {
|
|
type Response = SiteResponse;
|
|
}
|
|
|
|
impl SendActivity for GetSite {
|
|
type Response = GetSiteResponse;
|
|
}
|
|
|
|
impl SendActivity for GetCommunity {
|
|
type Response = GetCommunityResponse;
|
|
}
|
|
|
|
impl SendActivity for ListCommunities {
|
|
type Response = ListCommunitiesResponse;
|
|
}
|
|
|
|
impl SendActivity for CreateCommunity {
|
|
type Response = CommunityResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPost {
|
|
type Response = GetPostResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPosts {
|
|
type Response = GetPostsResponse;
|
|
}
|
|
|
|
impl SendActivity for GetComment {
|
|
type Response = CommentResponse;
|
|
}
|
|
|
|
impl SendActivity for GetComments {
|
|
type Response = GetCommentsResponse;
|
|
}
|
|
|
|
impl SendActivity for Login {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
impl SendActivity for GetCaptcha {
|
|
type Response = GetCaptchaResponse;
|
|
}
|
|
|
|
impl SendActivity for GetReplies {
|
|
type Response = GetRepliesResponse;
|
|
}
|
|
|
|
impl SendActivity for AddAdmin {
|
|
type Response = AddAdminResponse;
|
|
}
|
|
|
|
impl SendActivity for GetUnreadRegistrationApplicationCount {
|
|
type Response = GetUnreadRegistrationApplicationCountResponse;
|
|
}
|
|
|
|
impl SendActivity for ListRegistrationApplications {
|
|
type Response = ListRegistrationApplicationsResponse;
|
|
}
|
|
|
|
impl SendActivity for ApproveRegistrationApplication {
|
|
type Response = RegistrationApplicationResponse;
|
|
}
|
|
|
|
impl SendActivity for GetBannedPersons {
|
|
type Response = BannedPersonsResponse;
|
|
}
|
|
|
|
impl SendActivity for BlockPerson {
|
|
type Response = BlockPersonResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPersonMentions {
|
|
type Response = GetPersonMentionsResponse;
|
|
}
|
|
|
|
impl SendActivity for MarkPersonMentionAsRead {
|
|
type Response = PersonMentionResponse;
|
|
}
|
|
|
|
impl SendActivity for MarkCommentReplyAsRead {
|
|
type Response = CommentReplyResponse;
|
|
}
|
|
|
|
impl SendActivity for MarkAllAsRead {
|
|
type Response = GetRepliesResponse;
|
|
}
|
|
|
|
impl SendActivity for PasswordReset {
|
|
type Response = PasswordResetResponse;
|
|
}
|
|
|
|
impl SendActivity for PasswordChangeAfterReset {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
impl SendActivity for SaveUserSettings {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
impl SendActivity for ChangePassword {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
impl SendActivity for GetReportCount {
|
|
type Response = GetReportCountResponse;
|
|
}
|
|
|
|
impl SendActivity for GetUnreadCount {
|
|
type Response = GetUnreadCountResponse;
|
|
}
|
|
|
|
impl SendActivity for VerifyEmail {
|
|
type Response = VerifyEmailResponse;
|
|
}
|
|
|
|
impl SendActivity for MarkPrivateMessageAsRead {
|
|
type Response = PrivateMessageResponse;
|
|
}
|
|
|
|
impl SendActivity for CreatePrivateMessageReport {
|
|
type Response = PrivateMessageReportResponse;
|
|
}
|
|
|
|
impl SendActivity for ResolvePrivateMessageReport {
|
|
type Response = PrivateMessageReportResponse;
|
|
}
|
|
|
|
impl SendActivity for ListPrivateMessageReports {
|
|
type Response = ListPrivateMessageReportsResponse;
|
|
}
|
|
|
|
impl SendActivity for GetModlog {
|
|
type Response = GetModlogResponse;
|
|
}
|
|
|
|
impl SendActivity for PurgePerson {
|
|
type Response = PurgeItemResponse;
|
|
}
|
|
|
|
impl SendActivity for PurgeCommunity {
|
|
type Response = PurgeItemResponse;
|
|
}
|
|
|
|
impl SendActivity for PurgePost {
|
|
type Response = PurgeItemResponse;
|
|
}
|
|
|
|
impl SendActivity for PurgeComment {
|
|
type Response = PurgeItemResponse;
|
|
}
|
|
|
|
impl SendActivity for Search {
|
|
type Response = SearchResponse;
|
|
}
|
|
|
|
impl SendActivity for ResolveObject {
|
|
type Response = ResolveObjectResponse;
|
|
}
|
|
|
|
impl SendActivity for TransferCommunity {
|
|
type Response = GetCommunityResponse;
|
|
}
|
|
|
|
impl SendActivity for LeaveAdmin {
|
|
type Response = GetSiteResponse;
|
|
}
|
|
|
|
impl SendActivity for MarkPostAsRead {
|
|
type Response = PostResponse;
|
|
}
|
|
|
|
impl SendActivity for SavePost {
|
|
type Response = PostResponse;
|
|
}
|
|
|
|
impl SendActivity for ListPostReports {
|
|
type Response = ListPostReportsResponse;
|
|
}
|
|
|
|
impl SendActivity for ResolvePostReport {
|
|
type Response = PostReportResponse;
|
|
}
|
|
|
|
impl SendActivity for GetSiteMetadata {
|
|
type Response = GetSiteMetadataResponse;
|
|
}
|
|
|
|
impl SendActivity for SaveComment {
|
|
type Response = CommentResponse;
|
|
}
|
|
|
|
impl SendActivity for DistinguishComment {
|
|
type Response = CommentResponse;
|
|
}
|
|
|
|
impl SendActivity for ListCommentReports {
|
|
type Response = ListCommentReportsResponse;
|
|
}
|
|
|
|
impl SendActivity for ResolveCommentReport {
|
|
type Response = CommentReportResponse;
|
|
}
|
|
|
|
impl SendActivity for CreateCustomEmoji {
|
|
type Response = CustomEmojiResponse;
|
|
}
|
|
|
|
impl SendActivity for EditCustomEmoji {
|
|
type Response = CustomEmojiResponse;
|
|
}
|
|
|
|
impl SendActivity for DeleteCustomEmoji {
|
|
type Response = DeleteCustomEmojiResponse;
|
|
}
|
|
|
|
impl SendActivity for GetFederatedInstances {
|
|
type Response = GetFederatedInstancesResponse;
|
|
}
|