]> Untitled Git - lemmy.git/blob - crates/apub/src/activities/unfederated.rs
Federation tests replication round1 - demonstrate absent replication of comment delet...
[lemmy.git] / crates / apub / src / activities / unfederated.rs
1 use crate::SendActivity;
2 use lemmy_api_common::{
3   comment::{
4     CommentReportResponse,
5     CommentResponse,
6     DistinguishComment,
7     GetComment,
8     ListCommentReports,
9     ListCommentReportsResponse,
10     ResolveCommentReport,
11     SaveComment,
12   },
13   community::{
14     CommunityResponse,
15     CreateCommunity,
16     GetCommunityResponse,
17     ListCommunities,
18     ListCommunitiesResponse,
19     TransferCommunity,
20   },
21   custom_emoji::{
22     CreateCustomEmoji,
23     CustomEmojiResponse,
24     DeleteCustomEmoji,
25     DeleteCustomEmojiResponse,
26     EditCustomEmoji,
27   },
28   person::{
29     AddAdmin,
30     AddAdminResponse,
31     BannedPersonsResponse,
32     BlockPerson,
33     BlockPersonResponse,
34     ChangePassword,
35     CommentReplyResponse,
36     GetBannedPersons,
37     GetCaptcha,
38     GetCaptchaResponse,
39     GetPersonMentions,
40     GetPersonMentionsResponse,
41     GetReplies,
42     GetRepliesResponse,
43     GetReportCount,
44     GetReportCountResponse,
45     GetUnreadCount,
46     GetUnreadCountResponse,
47     Login,
48     LoginResponse,
49     MarkAllAsRead,
50     MarkCommentReplyAsRead,
51     MarkPersonMentionAsRead,
52     PasswordChangeAfterReset,
53     PasswordReset,
54     PasswordResetResponse,
55     PersonMentionResponse,
56     Register,
57     SaveUserSettings,
58     VerifyEmail,
59     VerifyEmailResponse,
60   },
61   post::{
62     GetPost,
63     GetPostResponse,
64     GetSiteMetadata,
65     GetSiteMetadataResponse,
66     ListPostReports,
67     ListPostReportsResponse,
68     MarkPostAsRead,
69     PostReportResponse,
70     PostResponse,
71     ResolvePostReport,
72     SavePost,
73   },
74   private_message::{
75     CreatePrivateMessageReport,
76     GetPrivateMessages,
77     ListPrivateMessageReports,
78     ListPrivateMessageReportsResponse,
79     MarkPrivateMessageAsRead,
80     PrivateMessageReportResponse,
81     PrivateMessageResponse,
82     PrivateMessagesResponse,
83     ResolvePrivateMessageReport,
84   },
85   site::{
86     ApproveRegistrationApplication,
87     CreateSite,
88     EditSite,
89     GetFederatedInstances,
90     GetFederatedInstancesResponse,
91     GetModlog,
92     GetModlogResponse,
93     GetSite,
94     GetSiteResponse,
95     GetUnreadRegistrationApplicationCount,
96     GetUnreadRegistrationApplicationCountResponse,
97     LeaveAdmin,
98     ListRegistrationApplications,
99     ListRegistrationApplicationsResponse,
100     PurgeComment,
101     PurgeCommunity,
102     PurgeItemResponse,
103     PurgePerson,
104     PurgePost,
105     RegistrationApplicationResponse,
106     SiteResponse,
107   },
108 };
109
110 impl SendActivity for Register {
111   type Response = LoginResponse;
112 }
113
114 impl SendActivity for GetPrivateMessages {
115   type Response = PrivateMessagesResponse;
116 }
117
118 impl SendActivity for CreateSite {
119   type Response = SiteResponse;
120 }
121
122 impl SendActivity for EditSite {
123   type Response = SiteResponse;
124 }
125
126 impl SendActivity for GetSite {
127   type Response = GetSiteResponse;
128 }
129
130 impl SendActivity for ListCommunities {
131   type Response = ListCommunitiesResponse;
132 }
133
134 impl SendActivity for CreateCommunity {
135   type Response = CommunityResponse;
136 }
137
138 impl SendActivity for GetPost {
139   type Response = GetPostResponse;
140 }
141
142 impl SendActivity for GetComment {
143   type Response = CommentResponse;
144 }
145
146 impl SendActivity for Login {
147   type Response = LoginResponse;
148 }
149
150 impl SendActivity for GetCaptcha {
151   type Response = GetCaptchaResponse;
152 }
153
154 impl SendActivity for GetReplies {
155   type Response = GetRepliesResponse;
156 }
157
158 impl SendActivity for AddAdmin {
159   type Response = AddAdminResponse;
160 }
161
162 impl SendActivity for GetUnreadRegistrationApplicationCount {
163   type Response = GetUnreadRegistrationApplicationCountResponse;
164 }
165
166 impl SendActivity for ListRegistrationApplications {
167   type Response = ListRegistrationApplicationsResponse;
168 }
169
170 impl SendActivity for ApproveRegistrationApplication {
171   type Response = RegistrationApplicationResponse;
172 }
173
174 impl SendActivity for GetBannedPersons {
175   type Response = BannedPersonsResponse;
176 }
177
178 impl SendActivity for BlockPerson {
179   type Response = BlockPersonResponse;
180 }
181
182 impl SendActivity for GetPersonMentions {
183   type Response = GetPersonMentionsResponse;
184 }
185
186 impl SendActivity for MarkPersonMentionAsRead {
187   type Response = PersonMentionResponse;
188 }
189
190 impl SendActivity for MarkCommentReplyAsRead {
191   type Response = CommentReplyResponse;
192 }
193
194 impl SendActivity for MarkAllAsRead {
195   type Response = GetRepliesResponse;
196 }
197
198 impl SendActivity for PasswordReset {
199   type Response = PasswordResetResponse;
200 }
201
202 impl SendActivity for PasswordChangeAfterReset {
203   type Response = LoginResponse;
204 }
205
206 impl SendActivity for SaveUserSettings {
207   type Response = LoginResponse;
208 }
209
210 impl SendActivity for ChangePassword {
211   type Response = LoginResponse;
212 }
213
214 impl SendActivity for GetReportCount {
215   type Response = GetReportCountResponse;
216 }
217
218 impl SendActivity for GetUnreadCount {
219   type Response = GetUnreadCountResponse;
220 }
221
222 impl SendActivity for VerifyEmail {
223   type Response = VerifyEmailResponse;
224 }
225
226 impl SendActivity for MarkPrivateMessageAsRead {
227   type Response = PrivateMessageResponse;
228 }
229
230 impl SendActivity for CreatePrivateMessageReport {
231   type Response = PrivateMessageReportResponse;
232 }
233
234 impl SendActivity for ResolvePrivateMessageReport {
235   type Response = PrivateMessageReportResponse;
236 }
237
238 impl SendActivity for ListPrivateMessageReports {
239   type Response = ListPrivateMessageReportsResponse;
240 }
241
242 impl SendActivity for GetModlog {
243   type Response = GetModlogResponse;
244 }
245
246 impl SendActivity for PurgePerson {
247   type Response = PurgeItemResponse;
248 }
249
250 impl SendActivity for PurgeCommunity {
251   type Response = PurgeItemResponse;
252 }
253
254 impl SendActivity for PurgePost {
255   type Response = PurgeItemResponse;
256 }
257
258 impl SendActivity for PurgeComment {
259   type Response = PurgeItemResponse;
260 }
261
262 impl SendActivity for TransferCommunity {
263   type Response = GetCommunityResponse;
264 }
265
266 impl SendActivity for LeaveAdmin {
267   type Response = GetSiteResponse;
268 }
269
270 impl SendActivity for MarkPostAsRead {
271   type Response = PostResponse;
272 }
273
274 impl SendActivity for SavePost {
275   type Response = PostResponse;
276 }
277
278 impl SendActivity for ListPostReports {
279   type Response = ListPostReportsResponse;
280 }
281
282 impl SendActivity for ResolvePostReport {
283   type Response = PostReportResponse;
284 }
285
286 impl SendActivity for GetSiteMetadata {
287   type Response = GetSiteMetadataResponse;
288 }
289
290 impl SendActivity for SaveComment {
291   type Response = CommentResponse;
292 }
293
294 impl SendActivity for DistinguishComment {
295   type Response = CommentResponse;
296 }
297
298 impl SendActivity for ListCommentReports {
299   type Response = ListCommentReportsResponse;
300 }
301
302 impl SendActivity for ResolveCommentReport {
303   type Response = CommentReportResponse;
304 }
305
306 impl SendActivity for CreateCustomEmoji {
307   type Response = CustomEmojiResponse;
308 }
309
310 impl SendActivity for EditCustomEmoji {
311   type Response = CustomEmojiResponse;
312 }
313
314 impl SendActivity for DeleteCustomEmoji {
315   type Response = DeleteCustomEmojiResponse;
316 }
317
318 impl SendActivity for GetFederatedInstances {
319   type Response = GetFederatedInstancesResponse;
320 }