diff options
author | Mike Verdone <spiral@arcseconds.net> | 2019-07-24 16:51:09 +0200 |
---|---|---|
committer | Mike Verdone <spiral@arcseconds.net> | 2019-07-24 16:51:09 +0200 |
commit | 2981821db834448bf9b2ba26590314e36201664c (patch) | |
tree | 3568aea050ebc9438eecfa8cafd8c3d9aaeede4d /test/web/mastodon_api/mastodon_api_controller_test.exs | |
parent | 91d9fdc7decc664483625c11e44d4e053dd9c585 (diff) | |
download | pleroma-2981821db834448bf9b2ba26590314e36201664c.tar.gz pleroma-2981821db834448bf9b2ba26590314e36201664c.zip |
squash! Expose expires_at datetime in mastoAPI only for the activity actor
NOTE: rewrite the commit msg
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/mastodon_api_controller_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs index e59908979..a9d38c06e 100644 --- a/test/web/mastodon_api/mastodon_api_controller_test.exs +++ b/test/web/mastodon_api/mastodon_api_controller_test.exs @@ -170,7 +170,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do assert activity = Activity.get_by_id(fourth_id) assert expiration = ActivityExpiration.get_by_activity_id(fourth_id) assert expiration.scheduled_at == expires_at - assert fourth_response["pleroma"]["expires_at"] == NaiveDateTime.to_iso8601(expires_at) + assert fourth_response["pleroma"]["expires_in"] > 0 end test "replying to a status", %{conn: conn} do |