Commit Graph
22 Commits
Author SHA1 Message Date
Matt JankowskiandGitHub e328ab7e5a Implement pending specs for StatusesController (#23969) 2023-05-22 13:43:05 +02:00
Matt JankowskiandGitHub 710745e16b Fix RSpec/ContextWording cop (#24739) 2023-05-04 05:49:08 +02:00
ClaireandGitHub 58a1b2e330 Fix caching logic with regards to Accept-Language, Cookie, and Signature (#24604) 2023-04-23 22:27:24 +02:00
Eugen RochkoandGitHub e98c86050a Refactor Cache-Control and Vary definitions (#24347) 2023-04-19 16:07:29 +02:00
Nick SchonningandGitHub 68b1071f86 Autofix Rubocop RSpec/BeNil (#23653) 2023-02-17 21:45:27 +09:00
ClaireandGitHub 8cf7006d4e Refactor ActivityPub handling to prepare for non-Account actors (#19212)
* Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService

ActivityPub::FetchRemoteAccountService is kept as a wrapper for when the actor is
specifically required to be an Account

* Refactor SignatureVerification to allow non-Account actors

* fixup! Move ActivityPub::FetchRemoteAccountService to ActivityPub::FetchRemoteActorService

* Refactor ActivityPub::FetchRemoteKeyService to potentially return non-Account actors

* Refactor inbound ActivityPub payload processing to accept non-Account actors

* Refactor inbound ActivityPub processing to accept activities relayed through non-Account

* Refactor how Account key URIs are built

* Refactor Request and drop unused key_id_format parameter

* Rename ActivityPub::Dereferencer `signature_account` to `signature_actor`
2022-09-21 22:45:57 +02:00
b5329e0035 Spelling (#17705)
* spelling: account

Signed-off-by: Josh Soref <[email protected]>

* spelling: affiliated

Signed-off-by: Josh Soref <[email protected]>

* spelling: appearance

Signed-off-by: Josh Soref <[email protected]>

* spelling: autosuggest

Signed-off-by: Josh Soref <[email protected]>

* spelling: cacheable

Signed-off-by: Josh Soref <[email protected]>

* spelling: component

Signed-off-by: Josh Soref <[email protected]>

* spelling: conversations

Signed-off-by: Josh Soref <[email protected]>

* spelling: domain.example

Clarify what's distinct and use RFC friendly domain space.

Signed-off-by: Josh Soref <[email protected]>

* spelling: environment

Signed-off-by: Josh Soref <[email protected]>

* spelling: exceeds

Signed-off-by: Josh Soref <[email protected]>

* spelling: functional

Signed-off-by: Josh Soref <[email protected]>

* spelling: inefficiency

Signed-off-by: Josh Soref <[email protected]>

* spelling: not

Signed-off-by: Josh Soref <[email protected]>

* spelling: notifications

Signed-off-by: Josh Soref <[email protected]>

* spelling: occurring

Signed-off-by: Josh Soref <[email protected]>

* spelling: position

Signed-off-by: Josh Soref <[email protected]>

* spelling: progress

Signed-off-by: Josh Soref <[email protected]>

* spelling: promotable

Signed-off-by: Josh Soref <[email protected]>

* spelling: reblogging

Signed-off-by: Josh Soref <[email protected]>

* spelling: repetitive

Signed-off-by: Josh Soref <[email protected]>

* spelling: resolve

Signed-off-by: Josh Soref <[email protected]>

* spelling: saturated

Signed-off-by: Josh Soref <[email protected]>

* spelling: similar

Signed-off-by: Josh Soref <[email protected]>

* spelling: strategies

Signed-off-by: Josh Soref <[email protected]>

* spelling: success

Signed-off-by: Josh Soref <[email protected]>

* spelling: targeting

Signed-off-by: Josh Soref <[email protected]>

* spelling: thumbnails

Signed-off-by: Josh Soref <[email protected]>

* spelling: unauthorized

Signed-off-by: Josh Soref <[email protected]>

* spelling: unsensitizes

Signed-off-by: Josh Soref <[email protected]>

* spelling: validations

Signed-off-by: Josh Soref <[email protected]>

* spelling: various

Signed-off-by: Josh Soref <[email protected]>

Co-authored-by: Josh Soref <[email protected]>
2022-03-06 22:51:40 +01:00
Eugen RochkoandGitHub 3134691948 Add support for reversible suspensions through ActivityPub (#14989) 2020-11-08 00:28:39 +01:00
ThibGandGitHub f55dd193f9 Fix RSS feeds not being cachable (#14368)
* Add tests for some cachable responses

This only covers responses that we should have managed to make cachable
so far. It's not the case of all responses that should be cachable in
the end.

* Fix RSS feeds not being cachable
2020-07-22 11:44:02 +02:00
Eugen RochkoandGitHub 988b0493fe Add more tests for ActivityPub controllers (#13585) 2020-05-03 16:30:36 +02:00
Eugen RochkoandGitHub 63c7fe8e48 Refactor controllers for statuses, accounts, and more (#11249) 2019-07-08 12:03:45 +02:00
Eugen RochkoandGitHub b851456139 Remove Atom feeds and old URLs in the form of GET /:username/updates/:id (#11247) 2019-07-07 16:16:51 +02:00
ThibGandEugen Rochko e88c6a5c3c Fix thread depth computation in statuses_controller (#9426)
* Add test that should currently fail

* Fix depth computation (will still fail if statuses have been filtered out)

* Fix handling of broken threads
2018-12-05 02:12:29 +01:00
Akihiko OdakiandEugen Rochko 1258efa882 Paginate descendant statuses in public page (#7148) 2018-04-23 19:27:35 +02:00
Yamagishi KazutoshiandEugen Rochko d10447c3a8 Use raw status code on have_http_status (#7214) 2018-04-21 21:35:07 +02:00
unaristandEugen Rochko b01a19fe39 Fetch reblogs as Announce activity instead of Note object (#4672)
* Process Create / Announce activity in FetchRemoteStatusService

* Use activity URL in ActivityPub for reblogs

* Redirect to the original status on StatusesController#show
2017-08-24 16:21:42 +02:00
unaristandMatt Jankowski 0f1b1d78b1 Use "match_array" only for order independent assertions (#3626) 2017-06-07 12:59:28 -04:00
Akihiko OdakiandEugen Rochko 152b4d54e8 Cover StatusesController more (#3259) 2017-05-23 16:34:28 +02:00
Matt JankowskiandEugen Rochko f48cb3eb17 More coverage yes more even more (#2627)
* Add coverage for admin/confirmations controller

* Coverage for statuses controller show action

* Add coverage for admin/domain_blocks controller

* Add coverage for settings/profiles#update
2017-04-30 00:25:38 +02:00
Eugen Rochko eec0dc46a6 PostStatusService can attach media to status, ProcessFeedService likewise 2016-09-05 18:39:53 +02:00
Eugen Rochko 10ba09f546 Upgrade to Rails 5.0.0.1 2016-08-17 17:58:00 +02:00
Eugen Rochko f14f462eaf Adding Turbolinks, adding status posting form on homepage 2016-03-21 18:26:47 +01:00