Ondřej Hruška
51e52bc24b
fix crash on crazy misskey poll
3 years ago
Ondřej Hruška
7847df0e2b
fix serializer failure on unknown MediaType string
3 years ago
Ondřej Hruška
54a0e55964
improvements for fedigroups
3 years ago
Ondřej Hruška
568b1ff07a
convert all to sync, remove now broken doc comments, some renames
3 years ago
Ondřej Hruška
c967e59ffb
all asyncified except for streaming
3 years ago
Ondřej Hruška
bc70389346
add new rustfmt.toml and reformat code
3 years ago
Paul Woolcock
fcf3a1bc29
Add some new entities & update some existing ones
3 years ago
Paul Woolcock
d66c63dd28
Remove `HttpSend` and `HttpSender`
...
this was maybe a good idea, but it isn't really needed
4 years ago
Paul Woolcock
602bfb7cdd
use nightly fmt
4 years ago
Paul Woolcock
7487f607e6
Second fmt pass
4 years ago
Paul Woolcock
982a8fc776
making clippy happy
4 years ago
Paul Woolcock
a69d0ea928
Cargo-fmt pass
4 years ago
Paul Woolcock
0b4ee7bfb2
Various cleanup tasks
...
* Remove old `extern crate` stmts
* Remove rust-skeptic
* Clean up Cargo.toml
4 years ago
Paul Woolcock
16bc060407
Update to the 2018 edition
...
Only 2 years later :eyeroll:
4 years ago
Jennifer Glauche
ac3ecc82b7
add documentation to metadata fields
5 years ago
Jennifer Glauche
1dd2963cf3
make MetadataFields be public
5 years ago
Christopher Davis
4020ecc6a7
account: Properly mark nullable source fields
...
Privacy and note are both nullable according to
https://source.joinmastodon.org/mastodon/docs/blob/master/content/en/api/entities.md#source
6 years ago
Paul Woolcock
b4af698e01
Fix Card entity to take a number for width x height
6 years ago
Paul Woolcock
583a1de7a2
Add `card` to `Status` entity
6 years ago
Paul Woolcock
e2c11f48d6
Initial commit of streaming support
6 years ago
Paul Woolcock
5e69ad4b33
Fix panic if there are < page number of results
6 years ago
Paul Woolcock
fe687bd955
Add `derive(PartialEq)` to all entities
6 years ago
Paul Woolcock
580af50687
Make a couple new masto properties optional
...
This will help prevent deser errors when querying pleroma & older
versions of mastodon
6 years ago
Paul Woolcock
2edebe90d1
Pleroma doesn't have a `fields` field here
...
Closes #86
6 years ago
Paul Woolcock
1f0ba1846c
Add the "endorsements" endpoints from mastodon 2.5.0
...
Closes #74
6 years ago
Paul Woolcock
7d164cb8db
Keyword/filtering API
...
This adds the 5 methods for the mastodon API that deal with keyword
filtering:
GET /api/v1/filters
POST /api/v1/filters
GET /api/v1/filters/:id
PUT /api/v1/filters/:id
DELETE /api/v1/filters/:id
Closes #71
6 years ago
Paul Woolcock
7d752a9fed
Adds the `replies_count` property to Status
...
Closes #73
6 years ago
Paul Woolcock
690b029d99
Add methods & data structures for all the "push" endpoints
...
Closes #53
6 years ago
Paul Woolcock
28192e1188
Implement a method for `GET /api/v2/search`
6 years ago
Paul Woolcock
20a9c69adc
POST /.../unfollow returns a Relationship, not an Account
6 years ago
Paul Woolcock
0ad1e3741c
Allow the user to update their profile metadata fields
...
Closes #54
6 years ago
Paul Woolcock
375e4af286
Add a test for UpdateCredentials::build
6 years ago
Paul Woolcock
a57c7e2f91
feat(update_credentials): Implement UpdateCredsRequest
...
This will now allow a user to actually call the
MastodonClient::update_credentials method
6 years ago
Paul Woolcock
57cc44368c
Document "everything"
...
This is a good start but many things need to be documented better, but
this will at least allow us to turn on #[deny(missing_docs)]
6 years ago
Paul Woolcock
5b24922d9e
Add some more lints, and fix the compile errors they generate
6 years ago
Paul Woolcock
6cee086d79
Add `max_toot_chars` to the Instance model
...
Closes #22
6 years ago
Paul Woolcock
0913926702
Add test for entities::Account
6 years ago
Paul Woolcock
4ff27dd049
Credientials -> Credentials
6 years ago
Paul Woolcock
35a603f193
These are not always present, make them Option<>s
6 years ago
Paul Woolcock
3330a26760
rustfmt pass
6 years ago
Paul Woolcock
49a2237803
Introduce HttpSend trait for converting `Request` -> `Response`
...
Parameterize everything that involves sending HTTP requests with the `H:
HttpSend` bound. This will allow us to swap out `HttpSend`
implementations when necessary, in order to better test our code
6 years ago
Paul Woolcock
8636e690c3
rustfmt pass
6 years ago
Paul Woolcock
5eca9748a3
Reduce the visibility of ItemsIter and add docs to items_iter
6 years ago
Paul Woolcock
49eee2313f
Make the `Meta` fields optional
...
using `deserialize_with` causes an error if the `"meta"` key is missing
completely, which is not very useful. This isn't ideal, but it will make
it so all the various states that "meta" can be in will deser correctly
6 years ago
Paul Woolcock
2e8ee7e840
This field can be `true/false` or `"true"/"false"`
6 years ago
Paul Woolcock
e5175f09fe
make apps::prelude and use the preludes in the tests
6 years ago
Paul Woolcock
cc083e335e
Change `Mastodon::from_data` to just `Mastodon::from`
6 years ago
Paul Woolcock
a9b6b52890
Change mammut references to elefren
6 years ago
Paul Woolcock
22b4b04738
Adds a `MastodonClient` trait
...
This is useful for user code, which can use the trait to add a layer of
indirection to their code, allowing them to swap out implementations for
testing
6 years ago
Paul Woolcock
d14d50070e
fix test
6 years ago