116 Commits

Author SHA1 Message Date
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
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
858da874ec Implement OneOrMany<&AnyString>::to_as_string() 2022-02-13 00:52:41 +09:00
Kitaiti Makoto
2654c66a9c Make fields of ApSignature07 and PublicKey07 public 2022-02-12 13:23:44 +09:00
Kitaiti Makoto
95244bd66f Add suffix 07 to activitystreams 0.7 related methods 2022-02-11 14:35:47 +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
05f55fc1ca Add https scheme to mention URI in contents 2022-02-05 17:58:00 +09:00
Kitaiti Makoto
74254aed4a Move require_logins from plume-common to plume 2022-01-12 04:18:13 +09:00
Kitaiti Makoto
677e238c6d Follow API change of heck 2022-01-07 06:12:15 +09:00
Kitaiti Makoto
c786569171 Define plume_common::escape() 2022-01-07 05:36:39 +09:00
Kitaiti Makoto
25fe2ad802 Use request::get() instead of ClientBuilder 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
48fab8ad2c Impl From for request::Error 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
a7d8d49faf Define request::get() function 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
388acd6738 Remove needless reference sign 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
5a5c8bdac8 Make inbox test follow API change 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
44f9d36df1 Make request test follow API change 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
f4d7dfb261 Sign GET request to other instances 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
858806149a Use concrete Error for Signer 2021-12-05 19:32:27 +09:00
Kitaiti Makoto
ae3344f318 Follow Rust and crates update 2021-11-28 08:06:29 +09:00
Kitaiti Makoto
eedd5fe4e9 Define utility function to percent-encode for IRI 2021-09-06 17:49:10 +09:00
Kitaiti Makoto
24c9c7b5a1 Build client for every inbox in broadcast() 2021-02-09 18:15:14 +09:00
Kitaiti Makoto
1b9aeae53c Add test for signagure() 2021-02-05 10:34:33 +09:00
Kitaiti Makoto
d08d2c6958 Care the case of invalid header value 2021-02-04 17:10:05 +09:00
Kitaiti Makoto
348259a14b Care about error case 2021-02-04 15:31:57 +09:00
Kitaiti Makoto
191239584b Define RequestTarget 2021-01-25 02:16:53 +09:00
Kitaiti Makoto
bd1caaf5da Include (request-target) and Host header to HTTP Signature 2021-01-25 02:16:53 +09:00
Kitaiti Makoto
be939cf169 Suppress clippy 2021-01-16 00:59:07 +09:00
Kitaiti Makoto
6eee4b0b65 Define custom errors 2021-01-16 00:43:41 +09:00
Kitaiti Makoto
012c8d2026 Remove redundant imports 2021-01-15 22:35:19 +09:00
Aiden McClelland
f167aad0fb fix doc tests 2021-01-11 13:29:01 -07:00
Aiden McClelland
24aac22b89
proxy support 2021-01-11 13:27:52 -07:00
Kitaiti Makoto
4a4534d6f3 Run cargo fmt 2021-01-11 09:05:31 +09:00
Kitaiti Makoto
becb40544c Replace println!()s with logging macros 2021-01-06 21:40:14 +09:00
Kitaiti Makoto
47c8711933 Run cargo fmt 2021-01-02 07:10:10 +09:00
Kitaiti Makoto
20a099c16f Replace Syntect's deprecated APIs with new APIs 2021-01-02 06:47:55 +09:00
Kitaiti Makoto
c482b1b552 Run cargo fmt 2020-12-28 22:15:45 +09:00
Trinity Pointard
6187c62cb3 add bidi via forked pulldown-cmark 2020-12-27 21:02:37 +01:00
Trinity Pointard
d6b5b9a721 upgrade to pulldown v0.8 2020-12-27 20:38:23 +01:00
Kitaiti Makoto
d6a946f5b9 Validate spoofing for all activities 2020-12-22 16:31:12 +09:00
Kitaiti Makoto
2eadb80435 Validate attributedTo in the case it is an object 2020-12-11 00:35:20 +09:00
Kitaiti Makoto
5cd8ae9106 Validate spoofing of Create activity 2020-12-03 19:20:10 +09:00
Kitaiti Makoto
350697f89a Run cargo fmt 2020-12-03 19:20:10 +09:00