Commit Graph

16 Commits (e62baacfc11508eb1d2ac1c1bcc3c4bd615d940b)

Author SHA1 Message Date
Eugen Rochko 8cf7a77808
Fix async refresh never being finished when status cannot be fetched (#35500) 4 months ago
Eugen Rochko 018e5e303f
Fix jobs being added to batch after they might already execute (#35496) 4 months ago
Eugen Rochko 14a781fa24
Add button to load new replies in web UI (#35210) 4 months ago
Claire 89cafb01b4
Remove double-query for signed query strings (#34610) 7 months ago
Claire 966b816382
Refactor `ActivityPub::FetchRepliesService` and `ActivityPub::FetchAllRepliesService` (#34149) 9 months ago
Jonny Saunders 46e13dd81c
Add Fetch All Replies Part 1: Backend (#32615)
Signed-off-by: sneakers-the-rat <sneakers-the-rat@protonmail.com>
Co-authored-by: jonny <j@nny.fyi>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Kouhai <66407198+kouhaidev@users.noreply.github.com>
9 months ago
Claire 8afa3bb2fa
Change Mastodon to issue correctly-signed queries by default (#31994) 1 year ago
Claire cf2a2ed71c
Fix processing of compacted single-item JSON-LD collections (#28816) 2 years ago
Jonathan de Jong de09176ab9
Retry 401 errors on replies fetching (#28788)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2 years ago
Matt Jankowski 0a5f0a8b20
Remove instance variables from helper usage (#24203) 3 years ago
Nick Schonning 717683d1c3
Autofix Rubocop remaining Layout rules (#23679) 3 years ago
Nick Schonning 669f6d2c0a
Run rubocop formatting except line length (#23632) 3 years ago
Claire 0c9eac80d8
Fix unbounded recursion in post discovery (#23506)
* Add a limit to how many posts can get fetched as a result of a single request

* Add tests

* Always pass `request_id` when processing `Announce` activities

---------

Co-authored-by: nametoolong <nametoolong@users.noreply.github.com>
3 years ago
Eugen Rochko 9f5b55ad4f
Fix poll update handler calling method was that was not available (#10246)
* Fix poll update handler calling method was that was not available

Fix regression from #10209

* Refactor VoteService

* Refactor ActivityPub::DistributePollUpdateWorker and optimize it

* Fix typo

* Fix typo
7 years ago
ThibG df5924a1db Do not error out on unsalvageable errors in FetchRepliesService (#10175)
* Do not error out on unsalvageable errors in FetchRepliesService

Fixes #10152

* Fix FetchRepliesWorker erroring out on deleted statuses
7 years ago
ThibG 9d3c6f1849 Improved remote thread fetching (#10106)
* Fetch up to 5 replies when discovering a new remote status

This is used for resolving threads downwards. The originating
server must add a “replies” attributes with such replies for it to
be useful.

* Add some tests for ActivityPub::FetchRepliesWorker

* Add specs for ActivityPub::FetchRepliesService

* Serialize up to 5 public self-replies for ActivityPub notes

* Add specs for ActivityPub::NoteSerializer

* Move exponential backoff logic to a worker concern

* Fetch first page of paginated collections when fetching thread replies

* Add specs for paginated collections in replies

* Move Note replies serialization to a first CollectionPage

The collection isn't actually paginable yet as it has no id nor
a `next` field. This may come in another PR.

* Use pluck(:uri) instead of map(&:uri) to improve performances

* Fix fetching replies when they are in a CollectionPage
7 years ago