summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
AgeCommit message (Collapse)Author
2019-07-24Revert "squash! Expose expires_at datetime in mastoAPI only for the activity ↵Mike Verdone
actor" This reverts commit 2981821db834448bf9b2ba26590314e36201664c.
2019-07-24squash! Expose expires_at datetime in mastoAPI only for the activity actorMike Verdone
NOTE: rewrite the commit msg
2019-07-24Expose expires_at datetime in mastoAPI only for the activity actorMike Verdone
In the "pleroma" section of the MastoAPI for status activities you can see an expires_at item that states when the activity will expire, or nothing if the activity will not expire. The expires_at date is only visible to the person who posted the activity. This is the conservative approach in case some attacker decides to write a logger for expiring posts. However, in the future of OCAP, signed requests, and all that stuff, this attack might not be that likely. Some other pleroma dev should remove the restriction in the code at that time, if they're satisfied with the security implications of doing so.
2019-07-24Add support for activity expiration to common and Masto APIMike Verdone
The "expires_at" parameter accepts an ISO8601-formatted date which defines when the activity will expire. At this point the API will not give you any feedback about if your post will expire or not.
2019-07-24Cleanup: fix a commentMike Verdone
2019-07-23rich media: parser: splice the given URL into the resultAriadne Conill
2019-07-23fix test names because i cannot typeSadposter
2019-07-23actually reblog on the reblog testSadposter
2019-07-23Use correct URL for testsSadposter
2019-07-23Mix formatSadposter
2019-07-23add tests for unauthed reqs to liked/reblogged_bySadposter
2019-07-22Hide blocked users from interactionsSadposter
2019-07-20[tests] Mock :crypt.crypt/2 function in AuthenticationPlugTestSergey Suprunenko
2019-07-17Fix password reset for non-test envEugenij
Fixes `Plug.Conn.NotSentError` that causes a 5xx error in response instead of 404 and 400. Fixes pattern matching error caused by different response format in test and non-test env: `Pleroma.Emails.Mailer.deliver_async` returns :ok when PleromaJobQueue is enabled and `{:ok, _}` when it's disabled. In tests, it's disabled.
2019-07-16mastoapi password resetAlexander Strizhakov
added rate limit to password reset configure rate limit in runtime
2019-07-16Add `pleroma.deactivated` to the Account entity (Mastodon API)Eugenij
2019-07-16Add the `blocked_by` attribute to the relationship API (`GET ↵Eugenij
/api/v1/accounts/relationships`)
2019-07-16Merge branch 'bugfix/poll-id-as-string' into 'develop'rinpatch
Status View: Poll ids are strings. See merge request pleroma/pleroma!1430
2019-07-16Mastodon Controller: Fix tests.lain
2019-07-16Status View: Poll ids are strings.lain
All ids in mastodon are strings, in general.
2019-07-15Add more tests for MastodonAPIController and CommonAPISergey Suprunenko
2019-07-15Merge remote-tracking branch 'pleroma/develop' into feature/addressable-listsEgor Kislitsyn
2019-07-15Support `list` visibility in StatusViewEgor Kislitsyn
2019-07-14Feature/1072 muting notificationsAlexander Strizhakov
2019-07-12Move these to pleroma namespace in Mastodon APIMark Felder
2019-07-11Extend Pleroma.Pagination to support offset-based pagination, use ↵Eugenij
async/await to execute status and account search in parallel
2019-07-10MastoAPI: Add categories to custom emojisHaelwenn (lanodan) Monnier
Note: This isn’t in a release yet, can be seen in mastofe on the rebase/glitch-soc branch.
2019-07-10Create mentions only for explicitly mentioned usersSergey Suprunenko
2019-07-10add test for search_controller/ 100% coverageMaksim
2019-07-09[#878] Merge remote-tracking branch 'remotes/upstream/develop' into ↵Ivan Tashkinov
878-activity-object-decoupling-in-tests # Conflicts: # lib/pleroma/object.ex # test/web/activity_pub/transmogrifier_test.exs # test/web/ostatus/ostatus_test.exs
2019-07-09Merge branch 'remove-avatar-header' into 'develop'kaniini
Ability to reset avatar, profile banner and backgroud See merge request pleroma/pleroma!1187
2019-07-08[#878] Refactored assumptions on embedded object presence in tests. Adjusted ↵Ivan Tashkinov
note factory to not embed object into activity.
2019-07-08Mastodon API: Fix embedded relationships not being rendered inside of statusesrinpatch
2019-06-30Add hashtag filter to user statuses (GET /api/v1/accounts/:id/statuses)Eugenij
2019-06-26Return correct response when reply to a direct message is not direct itselfSergey Suprunenko
2019-06-25add ignore hosts and TLDs for rich_mediaMaksim Pechnikov
2019-06-23Merge branch 'develop' into 'remove-avatar-header'Sachin Joshi
# Conflicts: # CHANGELOG.md
2019-06-18Mastodon API: Sanitize display namesrinpatch
Closes #1000
2019-06-15Mastodon API: Return the token needed for the chat.lain
2019-06-14Merge branch 'feature/add-background-image-to-mastoapi' into 'develop'rinpatch
AccountView: Add user background. See merge request pleroma/pleroma!1280
2019-06-14[#948] /api/v1/account_search added optional parameters (limit, offset, ↵Maksim
following)
2019-06-14MastodonAPI: Add a way to update the background image.lain
2019-06-13AccountView: Add user background.lain
2019-06-11Merge branch 'feature/rate-limiter' into 'develop'lain
Feature/Rate Limiter Closes #943 See merge request pleroma/pleroma!1266
2019-06-11Replace `MastodonAPIController.account_register/2` rate limiterEgor Kislitsyn
2019-06-10Add more tests for using media_proxy and whitelistsSergey Suprunenko
2019-06-06MastodonAPI: Add test for user search.lain
2019-06-05Limit search for unauthenticated users to local users onlyEgor Kislitsyn
2019-06-04Merge branch 'develop' into issue/941Maksim Pechnikov
2019-06-04Merge branch 'generic-fe-settings' into 'develop'kaniini
Generic settings store for frontend user settings See merge request pleroma/pleroma!1221