Commit Graph

16 Commits (f33049ffe43edf8886a4d549d506dd13ee06c36f)

Author SHA1 Message Date
Matt Jankowski 34489591ec
Add `max_pinned_statuses` to instances serializer and api response ()
Claire 7ee93b7431
Change `source` attribute of `Suggestion` entity in `/api/v2/suggestions` back to a string ()
Emelia Smith 603b245cc6
Add VAPID public key to instance serializer ()
Co-authored-by: Renaud Chaput <renchap@gmail.com>
Matt Jankowski 1d51e10510
Consolidate JSON parsing in serializers specs ()
Matt Jankowski b06284c572
Fix `RSpec/HookArgument` cop ()
Claire 3262d1f1b6
Fix incorrect serialization of regional languages in `contentMap` ()
Matt Jankowski 4c5aa0e470
Update rubocop-rspec to version 2.22.0, fix `RSpec/IndexedLet` cop ()
Matt Jankowski c42591356d
Fix `RSpec/DescribedClass` cop ()
Matt Jankowski 56bddfbfa3
Serializers spec coverage ()
Nick Schonning 19614ba247
Rename ActivityPub Serializer Specs ()
Nick Schonning 4552685f6b
Autofix Rubocop RSpec/LeadingSubject ()
Nick Schonning 669f6d2c0a
Run rubocop formatting except line length ()
Claire 66f715550e
Add `memorial` attribute to REST API ()
Claire c55568c75a
Add tests for `REST::AccountSerializer` ()
ThibG 9a90ec3b3b Fix account URI in UpdatePollSerializer ()
* Fix account URI in UpdatePollSerializer

Fixes 

* Add specs
ThibG 9d3c6f1849 Improved remote thread fetching ()
* 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