aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/controller_helper.ex
AgeCommit message (Collapse)Author
2022-02-25Copyright bump for 2022Sean King
2021-06-08Pleroma.Web.Params --> Pleroma.Web.Utils.ParamsAlex Gleason
2021-06-08Pleroma.Web.ControllerHelper.truthy_param?/1 --> ↵Alex Gleason
Pleroma.Web.Params.truthy_param?/1 Breaks cycle in lib/pleroma/web/api_spec/operations/status_operation.ex
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2021-01-12Pagination: Don't be dos'd by random parameters.lain
2021-01-11ChatMessages: Fix pagination headers.lain
They used to contain the path parameter `id` as query param, which would break the link.
2020-09-10added paginate links to headers for /chats/:id/messagesMaksim Pechnikov
2020-08-07Force 204 responses to be empty, fixes #2029Alex Gleason
2020-06-13ControllerHelper: Always return id field.lain
2020-06-13Apply suggestion to lib/pleroma/web/controller_helper.exlain
2020-06-10Apply suggestion to lib/pleroma/web/controller_helper.exlain
2020-06-10ControllerHelper: Fix wrong comparison.lain
2020-06-10Apply suggestion to lib/pleroma/web/controller_helper.exlain
2020-06-10Apply suggestion to lib/pleroma/web/controller_helper.exlain
2020-06-10Apply suggestion to lib/pleroma/web/controller_helper.exlain
2020-06-09StatusController: Correctly paginate favorites.lain
Favorites were paginating wrongly, because the pagination headers where using the id of the id of the `Create` activity, while the ordering was by the id of the `Like` activity. This isn't easy to notice in most cases, as they usually have a similar order because people tend to favorite posts as they come in. This commit adds a way to give different pagination ids to the pagination helper, so we can paginate correctly in cases like this.
2020-06-05Merge remote-tracking branch 'origin/develop' into ↵Egor Kislitsyn
activity-pub-use-atoms-as-keys
2020-06-05Merge branch 'features/apc2s-pagination' into 'develop'Haelwenn
Fix AP C2S pagination Closes #866 and #751 See merge request pleroma/pleroma!2491
2020-06-05Create Pleroma.Maps.put_if_present(map, key, value, value_fun // &{:ok, &1})Haelwenn
Unifies all the similar functions to one and simplify some blocks with it.
2020-06-04Use atoms as keys in `ActivityPub.fetch_*` functions optionsEgor Kislitsyn
2020-05-29AP C2S: allow limit & order on outbox & read_inboxHaelwenn (lanodan) Monnier
2020-05-29Bugfix: Reuse Controller.Helper pagination for APC2SHaelwenn (lanodan) Monnier
2020-05-13[#2456] OpenAPI-related tweaks. Removed support for `with_relationships` ↵Ivan Tashkinov
param in `GET /api/v1/accounts/search`.
2020-05-13[#2456] Changed `embed_relationships` param to `with_relationships`.Ivan Tashkinov
2020-05-12[#2456] Added support for `embed_relationships` param, nailed down endpoints ↵Ivan Tashkinov
which should support it. Fixed :source_mutes relationships subset fetching.
2020-05-09[#2456] Dropped support for embedded `pleroma/account/relationship` in ↵Ivan Tashkinov
statuses and notifications.
2020-05-01Restricted embedding of relationships where applicable (statuses / ↵Ivan Tashkinov
notifications / accounts rendering). Added support for :skip_notifications for accounts listing (index.json). Adjusted tests.
2020-04-27Use `json_response_and_validate_schema/2` in tests to validate OpenAPI schemaEgor Kislitsyn
2020-04-01Ability to control the output of account/pleroma/relationship in statuses in ↵Ivan Tashkinov
order to improve the rendering performance. See `[:extensions, output_relationships_in_statuses_by_default]` setting and `with_relationships` param.
2020-03-23Benchmarks: Add timeline benchmarklain
2020-03-16fix for feed page paginationAlexander Strizhakov
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2019-12-18add tag feedsMaksim Pechnikov
2019-10-01Extract poll actions from `MastodonAPIController` to `PollController`Egor Kislitsyn
2019-09-30Add PleromaAPI.AccountControllerEgor Kislitsyn
2019-09-26Extract timeline actions from `MastodonAPIController` into `TimelineController`Egor Kislitsyn
2019-09-06Refactor `add_link_headers/7` -> `add_link_headers/3`Egor Kislitsyn
2019-08-02Pleroma API: Add endpoint to get conversation statuses.lain
2019-06-14[#948] /api/v1/account_search added optional parameters (limit, offset, ↵Maksim
following)
2019-05-08Refactoring functions for dealing with oauth scopes.Maksim
2019-04-01Fixed local MastoFE authentication / `force_login` option.Ivan Tashkinov
2019-04-01Added `force_login` authentication option (previously applied by default).Ivan Tashkinov
2019-03-13[Credo] fix Credo.Check.Readability.MaxLineLengthHaelwenn (lanodan) Monnier
2019-02-17[#468] Refactored OAuth scopes' defaults & missing selection handling.Ivan Tashkinov
2019-02-15[#468] Defined OAuth restrictions for all applicable routes.Ivan Tashkinov
Improved missing "scopes" param handling. Allowed "any of" / "all of" mode specification in OAuthScopesPlug. Fixed auth UI / behavior when user selects no permissions at /oauth/authorize.
2019-02-14[#468] Refactored OAuth scopes parsing / defaults handling.Ivan Tashkinov
2018-12-31update copyright years to 2019William Pitcock
2018-12-23add license boilerplate to pleroma coreWilliam Pitcock
2018-12-06[#394] Added `users.tags` and admin routes to tag and untag users. Added tests.Ivan Tashkinov