Commit Graph

7 Commits (5a8ab0a3e62a8825e28bb74c1760ba6488d20c97)

Author SHA1 Message Date
Eugen Rochko c8ec649830
Fix "new replies available" miscounting previously known replies (#35654) 3 months ago
Eugen Rochko a368b29e27
Fix number of new replies increasing even if reply was not fetched (#35577) 4 months ago
Eugen Rochko 8cf7a77808
Fix async refresh never being finished when status cannot be fetched (#35500) 4 months ago
Eugen Rochko 14a781fa24
Add button to load new replies in web UI (#35210) 4 months ago
Jonny Saunders b709ef8ac3
Add: Update root status when fetching replies (#34615) 6 months 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
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