diff options
author | lain <lain@soykaf.club> | 2019-08-24 17:22:48 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-08-24 17:22:48 +0200 |
commit | efb8818e9ee280b53eac17699e8114e8af82b03b (patch) | |
tree | b9869667be16769d30e83d67455236f862e51c7c /test/web/common_api/common_api_test.exs | |
parent | 1692fa89458f0f83f69ffa2f85a998869b8fe454 (diff) | |
download | pleroma-efb8818e9ee280b53eac17699e8114e8af82b03b.tar.gz pleroma-efb8818e9ee280b53eac17699e8114e8af82b03b.zip |
Activity Expiration: Switch to 'expires_in' system.
Diffstat (limited to 'test/web/common_api/common_api_test.exs')
-rw-r--r-- | test/web/common_api/common_api_test.exs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs index 5fda91438..f28a66090 100644 --- a/test/web/common_api/common_api_test.exs +++ b/test/web/common_api/common_api_test.exs @@ -213,10 +213,8 @@ defmodule Pleroma.Web.CommonAPITest do |> NaiveDateTime.truncate(:second) |> NaiveDateTime.add(1_000_000, :second) - expires_at_iso8601 = expires_at |> NaiveDateTime.to_iso8601() - assert {:ok, activity} = - CommonAPI.post(user, %{"status" => "chai", "expires_at" => expires_at_iso8601}) + CommonAPI.post(user, %{"status" => "chai", "expires_in" => 1_000_000}) assert expiration = Pleroma.ActivityExpiration.get_by_activity_id(activity.id) assert expiration.scheduled_at == expires_at |