gearheads
/
mastodon
Archived
2
0
Fork 0
Commit Graph

8 Commits (a1b065700a9aafd0989bd5686c849f961f727c83)

Author SHA1 Message Date
Akihiko Odaki e0ef7f9d79 Fix XML oEmbed support discovery () 2017-12-27 03:29:49 +01:00
Eugen Rochko a8deb6648b
Fix redundant HTTP request in FetchLinkCardService () 2017-12-13 12:15:28 +01:00
Yamagishi Kazutoshi b21db9bbde Using double splat operator () 2017-12-06 11:41:57 +01:00
Eugen Rochko 1618b68bfa HTTP signatures ()
* Add Request class with HTTP signature generator

Spec: https://tools.ietf.org/html/draft-cavage-http-signatures-06

* Add HTTP signature verification concern

* Add test for SignatureVerification concern

* Add basic test for Request class

* Make PuSH subscribe/unsubscribe requests use new Request class

Accidentally fix lease_seconds not being set and sent properly, and
change the new minimum subscription duration to 1 day

* Make all PuSH workers use new Request class

* Make Salmon sender use new Request class

* Make FetchLinkService use new Request class

* Make FetchAtomService use the new Request class

* Make Remotable use the new Request class

* Make ResolveRemoteAccountService use the new Request class

* Add more tests

* Allow +-30 seconds window for signed request to remain valid

* Disable time window validation for signed requests, restore 7 days
as PuSH subscription duration (which was previous default due to a bug)
2017-07-14 20:41:49 +02:00
Akihiko Odaki (@fn_aki@pawoo.net) e674608d10 A minor change for ProviderDiscovery and spec ()
* Do not default the format in ProviderDiscovery

The format should be determined when discovering, as it is in the current
implementation, and it is a flaw if it is not determined.

* Spec ProviderDiscovery
2017-06-04 14:59:40 +02:00
masarakki 267ed3d74b raise-when-oembed-not-found () 2017-05-07 19:00:40 +02:00
Yamagishi Kazutoshi 831ff60698 Fix broken oEmbed provider () 2017-04-27 19:29:11 +02:00
Eugen Rochko 88725d6ce8 OEmbed support for PreviewCard ()
* OEmbed support for PreviewCard

* Improve ProviderDiscovery code failure treatment

* Do not crawl links if there is a content warning, since those
don't display a link card anyway

* Reset db schema

* Fresh migrate

* Fix rubocop style issues
Fix  - return existing access token when applicable instead of creating new

* Fix test

* Extract http client to helper

* Improve oembed controller
2017-04-27 14:42:22 +02:00