Merge branch 'develop' into 'fix/2411-mutes-api'
authorfeld <feld@feld.me>
Tue, 2 Feb 2021 17:57:58 +0000 (17:57 +0000)
committerfeld <feld@feld.me>
Tue, 2 Feb 2021 17:57:58 +0000 (17:57 +0000)
# Conflicts:
#   CHANGELOG.md
#   docs/development/API/differences_in_mastoapi_responses.md

1  2 
CHANGELOG.md
docs/development/API/differences_in_mastoapi_responses.md
lib/pleroma/web/api_spec/operations/account_operation.ex
test/pleroma/web/mastodon_api/controllers/account_controller_test.exs

diff --cc CHANGELOG.md
index b2b7e5671718ac9d3c492cd69220a3cd341f4d5d,f4f3bddb7400cb6216923b68292f35ef2da28a93..504ba2fb85eadbede9d4dd87ccbb6c2637facfef
@@@ -49,7 -49,8 +49,9 @@@ The format is based on [Keep a Changelo
  - Admin API: An endpoint to manage frontends.
  - Streaming API: Add follow relationships updates.
  - WebPush: Introduce `pleroma:chat_mention` and `pleroma:emoji_reaction` notification types.
+ - Mastodon API: Add monthly active users to `/api/v1/instance` (`pleroma.stats.mau`).
+ - Mastodon API: Home, public, hashtag & list timelines accept `only_media`, `remote` & `local` parameters for filtration.
 +- Mastodon API: `/api/v1/accounts/:id` & `/api/v1/mutes` endpoints accept `with_relationships` parameter and return filled `pleroma.relationship` field.
  </details>
  
  ### Fixed
index b532d14eddb99347787e1b4bffec7abbffc44c9d,c83be2faac38659053e9aaf9160c48d5b844db09..38d70fa78e188757590423639a73f38165cf9478
@@@ -54,13 -60,16 +60,23 @@@ The `id` parameter can also be the `nic
  - `/api/v1/accounts/:id`
  - `/api/v1/accounts/:id/statuses`
  
+ `/api/v1/accounts/:id/statuses` endpoint accepts these parameters:
+ - `pinned`: include only pinned statuses
+ - `tagged`: with tag
+ - `only_media`: include only statuses with media attached
+ - `with_muted`: include statuses/reactions from muted accounts
+ - `exclude_reblogs`: exclude reblogs
+ - `exclude_replies`: exclude replies
+ - `exclude_visibilities`: exclude visibilities
 +Endpoints which accept `with_relationships` parameter:
 +
 +- `/api/v1/accounts/:id`
 +- `/api/v1/accounts/:id/followers`
 +- `/api/v1/accounts/:id/following`
 +- `/api/v1/mutes`
 +
  Has these additional fields under the `pleroma` object:
  
  - `ap_id`: nullable URL string, ActivityPub id of the user