Commit Graph

40 Commits (2cc25a72420647baa8fe7a85cef3e409da6b647f)

Author SHA1 Message Date
Brint E. Kriebel 9faaa4f0dc Add support for edited statuses
ActivityPub supports "status.update" for editing statuses. These should
be made available for streams.
2022-12-28 23:59:18 +09:00
Rasmus Lindroth 51f9d7f999 add source, history for statuses and option to update a status 2022-11-30 08:16:07 +09:00
Rasmus Lindroth 5f0c9a21c2 add support for language 2022-11-17 07:16:38 +09:00
Darren O'Connor 9e1af56ceb remove redundent return statements 2022-11-16 10:49:14 +09:00
Tyr Mactire 2a3ac1d1d5 Client Credentials 2022-08-27 13:35:59 +09:00
Rasmus Lindroth 4cbbf813dc add test for PostStatus 2021-11-06 11:00:42 +09:00
Yasuhiro Matsumoto e24991527b Fix test 2019-09-30 17:15:56 +09:00
Yasuhiro Matsumoto 80c1d52a0d Fix tests 2019-09-30 17:15:56 +09:00
Christian Muehlhaeuser c09198f7c9 Fixed pagination parsing for non-numeric IDs
Mastodon API's pagination IDs are not guaranteed to be in a numeric format.
This happens to be the case for the tootsuite implementation, but others
use UUIDs or flake IDs for pagination.

This also simplifies the code a bit and luckily shouldn't break backwards
compatibility since they're already of type ID in the Pagination struct.
2019-05-17 10:55:38 +09:00
178inaba efa05aa949 Fix TestNewPagination
Add min_id error pattern.
2019-02-15 10:03:18 +09:00
178inaba 460b971f54 Fix TestPaginationSetValues 2019-02-15 10:03:18 +09:00
178inaba 1fcdf9f501 Fix TestPaginationSetValues 2019-02-15 10:03:18 +09:00
178inaba b8bb5ae68c Add MinID to Pagination 2019-02-15 10:03:18 +09:00
Yasuhiro Matsumoto 730317321a also convert to string in attachments, pagenation 2017-10-25 10:22:39 +09:00
178inaba 4033436175 Fix to set MaxID and SinceID to exclusive 2017-05-08 13:44:49 +09:00
178inaba f283f05671 Fix Pagination variable from *int64 to int64 2017-05-07 01:36:25 +09:00
178inaba 22f47735b4 Add processing when pagination is nil 2017-05-06 23:34:42 +09:00
178inaba 134128cb56 Fix to not return *Pagination 2017-05-06 23:03:19 +09:00
178inaba 5fad354d1a Add test 2017-05-04 23:35:05 +09:00
178inaba d32c4d4ed1 Add Pagination 2017-05-04 21:56:54 +09:00
y0za e9f28b9c6e Fix test json property name 2017-04-20 19:37:24 +09:00
TSUYUSATO Kitsune b105e8554c Remove 'go' from calling 'cancel'
https://github.com/mattn/go-mastodon/pull/28#discussion_r112162740
2017-04-19 19:12:09 +09:00
TSUYUSATO Kitsune fb53d41dd9 Correct context uses
`doAPI`'s `context` does not work due to `WithContext` immutability.
`Authenticate` and `RegisterApp` does not use `context` although they
needs `context`, so their `context` does not work also. This commit fixes
them and add test cases.
2017-04-19 18:53:55 +09:00
Yasuhiro Matsumoto 318df76454 add test for linkHeader 2017-04-19 17:48:53 +09:00
178inaba a752a1bd6b Add accounts test 2017-04-17 23:39:47 +09:00
178inaba 39239ae270 Fix accounts test 2017-04-17 23:21:52 +09:00
178inaba e1bc4c143d Fix test error message 2017-04-17 13:03:31 +09:00
Yasuhiro Matsumoto 5e84b57bf3 breaking compatibility changes. take context for first arguments. 2017-04-17 11:10:29 +09:00
Yasuhiro Matsumoto 3b4b2ce794 separate test files 2017-04-16 20:06:54 +09:00
Yasuhiro Matsumoto 9f84e175f1 separate test file 2017-04-16 20:05:42 +09:00
178inaba 9dee3fc07f Fix POST to http.MethodPost 2017-04-14 23:59:11 +09:00
Yasuhiro Matsumoto d14072e12b go vet 2017-04-14 19:20:23 +09:00
Yasuhiro Matsumoto 0eccbb0514 add test 2017-04-14 18:53:14 +09:00
Yasuhiro Matsumoto dc7a04a5b5 add test 2017-04-14 18:19:38 +09:00
Yasuhiro Matsumoto f765667837 add test 2017-04-14 17:47:15 +09:00
Yasuhiro Matsumoto bfa6468c73 add test 2017-04-14 17:37:59 +09:00
Yasuhiro Matsumoto d1e98eb548 add test 2017-04-14 17:30:27 +09:00
Yasuhiro Matsumoto c3ca0792f5 add test 2017-04-14 17:26:22 +09:00
Yasuhiro Matsumoto d168c8b4a6 tests for the coverages 2017-04-14 17:21:31 +09:00
Yasuhiro Matsumoto 1d9ff623fc add test 2017-04-14 17:10:20 +09:00