1775 Commits

Author SHA1 Message Date
Kitaiti Makoto
7361926ce5 Add test for User::outbox_collection07() 2022-02-13 02:22:22 +09:00
Kitaiti Makoto
ffe25cfd3d Implement User::outbox_collection07() 2022-02-13 02:09:28 +09:00
Kitaiti Makoto
a0da266ad1 Implement From<iri_string::validate::Error> for Error 2022-02-13 02:07:23 +09:00
Kitaiti Makoto
793124546c Implement AsObject07 for User 2022-02-13 01:43:01 +09:00
Kitaiti Makoto
bc6d021b4a [REFACTORING]Reduce duplicated closure 2022-02-13 01:33:04 +09:00
Kitaiti Makoto
ac03fcded6 [REFACTORING]Use method chain instead of if clauses 2022-02-13 01:31:15 +09:00
Kitaiti Makoto
bcbe1ba150 Use OneOrMany<AnyBase>::to_as_uri() 2022-02-13 01:23:47 +09:00
Kitaiti Makoto
a63d948be7 Implement OneOrMany<AnyBase>::to_as_uri() 2022-02-13 01:23:36 +09:00
Kitaiti Makoto
62a6ab298f Use OneOrMany<&AnyString>::as_as_str() 2022-02-13 01:15:39 +09:00
Kitaiti Makoto
4cf7cae0b7 Implement OneOrMany<&AnyString>::as_as_str() 2022-02-13 01:15:23 +09:00
Kitaiti Makoto
385b4ee142 Rewrite to_as_string() using method chain instead of if expressions 2022-02-13 01:05:25 +09:00
Kitaiti Makoto
afc206631c Remove unused import 2022-02-13 01:00:24 +09:00
Kitaiti Makoto
e85e465cba Use &AnyString::as_as_str() 2022-02-13 00:59:36 +09:00
Kitaiti Makoto
8b195fe7ea Implement &AnyString::as_as_str() 2022-02-13 00:59:15 +09:00
Kitaiti Makoto
e0a6a5ef15 Use OneOrMany<&AnyString>::to_as_string() 2022-02-13 00:53:08 +09:00
Kitaiti Makoto
858da874ec Implement OneOrMany<&AnyString>::to_as_string() 2022-02-13 00:52:41 +09:00
Kitaiti Makoto
1f40a1dd74 Implement FromId07 for User 2022-02-12 22:32:19 +09:00
Kitaiti Makoto
2654c66a9c Make fields of ApSignature07 and PublicKey07 public 2022-02-12 13:23:44 +09:00
Kitaiti Makoto
4f9eccf30f WIP 2022-02-11 14:49:52 +09:00
Kitaiti Makoto
95244bd66f Add suffix 07 to activitystreams 0.7 related methods 2022-02-11 14:35:47 +09:00
Kitaiti Makoto
4b57764d96 Implement From<activitystreams::checked::CheckError> for Error 2022-02-11 14:20:04 +09:00
Kitaiti Makoto
a5b15a2969 Reduce type parameter from broadcast07 2022-02-11 12:55:52 +09:00
Kitaiti Makoto
e19c2fa08e [plume-common]Add tests for new ActivityPub functions 2022-02-11 02:29:29 +09:00
Kitaiti Makoto
abb311d349 [plume-common]Implement ActivityPub related function using activitystreams 0.7 2022-02-11 02:18:54 +09:00
Kitaiti Makoto
118bac203a [plume-common]Implement ActivityPub-related code using activitystreams 0.7 2022-02-11 00:24:37 +09:00
Kitaiti Makoto
775799bd0f Add tests for newly added ActivityPub-related structs 2022-02-05 18:20:09 +09:00
Kitaiti Makoto
c16150e78f Install assert-json-diff 2022-02-05 18:18:54 +09:00
Kitaiti Makoto
1c6a0182f5 Add assert-json-diff to plume-common's dependencies 2022-02-05 18:06:17 +09:00
Kitaiti Makoto
7872876ba6 Install activitystreams-ext 2022-02-05 18:04:52 +09:00
Kitaiti Makoto
3bf009fdba Add ActivityStreams Ext to plume-common dependencies 2022-02-05 18:04:52 +09:00
Kitaiti Makoto
b4c08404fa Add activitystreams 0.7 to plume-models dependencies 2022-02-05 18:04:52 +09:00
Kitaiti Makoto
43aae448db Install activitystreams 0.7 2022-02-05 18:04:03 +09:00
Kitaiti Makoto
d2a1b2f6ea Add activitystreams 0.7 to plume-common dependencies 2022-02-05 17:59:54 +09:00
Kitaiti Makoto
54cbdb236f Add tests for Mention activity 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
34c374de1a Attach icon field to User activity only whene it has avatar 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
113722e4ba Add more ActivityPub tests for User 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
3b429909f1 Extract User::outbox_collection_page() from outbox_collection() for testablity 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
f1cdf4552f Extract User::outbox_collection() from outbox() for testablity 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
7d320e57da Don't make medias::tests::clean() panic when file not found 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
e1a598a459 Attach avater to sample user 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
6107842303 Add tests for Comment::to_activity() and build_delete() 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
65372d2018 Extract comments::tests::prepare_activity() 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
4842385ca6 Add test about reply 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
05f55fc1ca Add https scheme to mention URI in contents 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
e8153d4b42 Fix Comment::to_activity() 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
2087a659f9 Add test to validate comment json 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
1770336c11 Make format_datetime() crate public 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
9c177f6286 Change format_datetime implementation according to feature 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
93a2c6d99f Add tests for Follow::build_accept() and build_undo() 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
5ef76873b7 Fix tests 2022-02-05 17:58:00 +09:00