mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-02 17:21:22 +00:00
Nutomic
3578dab67f
* Remove PerformApub trait This is completely useless now that websocket is gone. In the future I also plan to remove Perform and PerformCrud traits, but it will be difficult to do that while still compiling crates in parallel. * params need to use query
320 lines
6.6 KiB
Rust
320 lines
6.6 KiB
Rust
use crate::SendActivity;
|
|
use lemmy_api_common::{
|
|
comment::{
|
|
CommentReportResponse,
|
|
CommentResponse,
|
|
DistinguishComment,
|
|
GetComment,
|
|
ListCommentReports,
|
|
ListCommentReportsResponse,
|
|
ResolveCommentReport,
|
|
SaveComment,
|
|
},
|
|
community::{
|
|
CommunityResponse,
|
|
CreateCommunity,
|
|
GetCommunityResponse,
|
|
ListCommunities,
|
|
ListCommunitiesResponse,
|
|
TransferCommunity,
|
|
},
|
|
custom_emoji::{
|
|
CreateCustomEmoji,
|
|
CustomEmojiResponse,
|
|
DeleteCustomEmoji,
|
|
DeleteCustomEmojiResponse,
|
|
EditCustomEmoji,
|
|
},
|
|
person::{
|
|
AddAdmin,
|
|
AddAdminResponse,
|
|
BannedPersonsResponse,
|
|
BlockPerson,
|
|
BlockPersonResponse,
|
|
ChangePassword,
|
|
CommentReplyResponse,
|
|
GetBannedPersons,
|
|
GetCaptcha,
|
|
GetCaptchaResponse,
|
|
GetPersonMentions,
|
|
GetPersonMentionsResponse,
|
|
GetReplies,
|
|
GetRepliesResponse,
|
|
GetReportCount,
|
|
GetReportCountResponse,
|
|
GetUnreadCount,
|
|
GetUnreadCountResponse,
|
|
Login,
|
|
LoginResponse,
|
|
MarkAllAsRead,
|
|
MarkCommentReplyAsRead,
|
|
MarkPersonMentionAsRead,
|
|
PasswordChangeAfterReset,
|
|
PasswordReset,
|
|
PasswordResetResponse,
|
|
PersonMentionResponse,
|
|
Register,
|
|
SaveUserSettings,
|
|
VerifyEmail,
|
|
VerifyEmailResponse,
|
|
},
|
|
post::{
|
|
GetPost,
|
|
GetPostResponse,
|
|
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,
|
|
SiteResponse,
|
|
},
|
|
};
|
|
|
|
impl SendActivity for Register {
|
|
type Response = LoginResponse;
|
|
}
|
|
|
|
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 ListCommunities {
|
|
type Response = ListCommunitiesResponse;
|
|
}
|
|
|
|
impl SendActivity for CreateCommunity {
|
|
type Response = CommunityResponse;
|
|
}
|
|
|
|
impl SendActivity for GetPost {
|
|
type Response = GetPostResponse;
|
|
}
|
|
|
|
impl SendActivity for GetComment {
|
|
type Response = CommentResponse;
|
|
}
|
|
|
|
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 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;
|
|
}
|