Activity Expiration: Switch to 'expires_in' system.
This commit is contained in:
parent
1692fa8945
commit
efb8818e9e
3 changed files with 18 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue