Add support for activity expiration to common and Masto API
authorMike Verdone <spiral@arcseconds.net>
Mon, 22 Jul 2019 14:46:20 +0000 (16:46 +0200)
committerMike Verdone <spiral@arcseconds.net>
Wed, 24 Jul 2019 12:45:14 +0000 (14:45 +0200)
commit704960b3c135d2e050308c68f5ccf5d7b7df40f8
tree85c5e602683014b42147dd582113fafff578c4eb
parent378f5f0fbe21c2533719fed9afe8313586fda5d5
Add support for activity expiration to common and Masto API

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.
docs/api/differences_in_mastoapi_responses.md
lib/pleroma/activity_expiration.ex
lib/pleroma/web/common_api/common_api.ex
test/support/factory.ex
test/web/common_api/common_api_test.exs
test/web/mastodon_api/mastodon_api_controller_test.exs