Jennifer Glauche
0aae35e310
make it not return http 400 when passing and empty source argument ( #12259 )
...
* make it not return http 400 when passing and empty source argument
* create a spec for the empty source hash bug
* compact checks for nil, empty? parameters
* use nil.blank? instead checking for nil
2019-11-16 19:02:09 +01:00
Eugen Rochko
fd8ca11f19
Add profile directory ( #9427 )
...
Fix #5578
2018-12-06 17:36:11 +01:00
Eugen Rochko
34fdf77f48
Add more granular OAuth scopes ( #7929 )
...
* Add more granular OAuth scopes
* Add human-readable descriptions of the new scopes
* Ensure new scopes look good on the app UI
* Add tests
* Group scopes in screen and color-code dangerous ones
* Fix wrong extra scope
2018-07-05 18:31:35 +02:00
Eugen Rochko
f91fa10804
Allow selecting default posting language instead of auto-detect ( #7828 )
...
* Allow selecting default posting language instead of auto-detect
* Enable default language setting in credentials API
* Fix form saving
2018-06-17 18:57:31 +02:00
Eugen Rochko
7ff3c849d1
Bot nameplates ( #7391 )
...
* Store actor type in database
* Add bot nameplate to web UI, add setting to preferences, API, AP
Fix #7365
* Fix code style issues
2018-05-07 09:31:07 +02:00
Eugen Rochko
4258e304c5
Allow updating bio fields via PUT /api/v1/accounts/update_credentials ( #7288 )
...
Add raw bio fields to the source attribute on GET /api/v1/accounts/verify_credentials
2018-05-02 15:57:37 +02:00
Levi Bard
6828abc1d7
Enable updating additional account information from user preferences via rest api ( #6789 )
...
* Enable updating additional account information from user preferences via rest api
Resolves #6553
* Pacify rubocop
* Decoerce incoming settings in UserSettingsDecorator
* Create user preferences hash directly from incoming credentials instead of going through ActionController::Parameters
* Clean up user preferences update
* Use ActiveModel::Type::Boolean instead of manually checking stringified number equivalence
2018-04-08 13:43:10 +02:00
Konrad Pozniak
fa710fd496
add parameter locked to /api/v1/update_credentials ( #6506 )
2018-02-18 22:57:53 +01:00
masarakki
d8f136cb8b
authorize-follow-requests-after-unlocking ( #4658 )
2017-08-26 12:40:03 +02:00
Eugen Rochko
39b76d47a5
Fix #4637 - Re-add missing doorkeeper_authorize for /api/v1/verify_credentials ( #4650 )
2017-08-21 00:41:08 +02:00
Eugen Rochko
5516767c75
ActivityPub delivery ( #4566 )
...
* Deliver ActivityPub Like
* Deliver ActivityPub Undo-Like
* Deliver ActivityPub Create/Announce activities
* Deliver ActivityPub creates from mentions
* Deliver ActivityPub Block/Undo-Block
* Deliver ActivityPub Accept/Reject-Follow
* Deliver ActivityPub Undo-Follow
* Deliver ActivityPub Follow
* Deliver ActivityPub Delete activities
Incidentally fix #889
* Adjust BatchedRemoveStatusService for ActivityPub
* Add tests for ActivityPub workers
* Add tests for FollowService
* Add tests for FavouriteService, UnfollowService and PostStatusService
* Add tests for ReblogService, BlockService, UnblockService, ProcessMentionsService
* Add tests for AuthorizeFollowService, RejectFollowService, RemoveStatusService
* Add tests for BatchedRemoveStatusService
* Deliver updates to a local account to ActivityPub followers
* Minor adjustments
2017-08-13 00:44:41 +02:00
Yamagishi Kazutoshi
2ffd2303ee
Add attribute for default privacy to verify credentials ( #4075 )
...
* Add attribute for default privacy to verify credentials
* add raw_note
* source
2017-07-10 03:29:34 +02:00
Eugen Rochko
20e15ecfb3
Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl ( #4090 )
2017-07-07 04:02:06 +02:00
Matt Jankowski
76f986d07b
Clean up for api/base controller ( #3629 )
...
* Move ApiController to Api/BaseController
* API controllers inherit from Api::BaseController
* Add coverage for various error cases in api/base controller
2017-06-07 20:09:25 +02:00
Matt Jankowski
1066fd1ab5
Spec coverage and refactor for the api/v1/accounts controllers ( #3451 )
2017-05-31 21:36:24 +02:00