diff options
| author | lain <lain@soykaf.club> | 2023-12-07 08:08:27 +0000 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2023-12-07 08:08:27 +0000 | 
| commit | 5f74aadaaf6f8cbd31ce251a03729c8d5276409a (patch) | |
| tree | f7c3c4da1962df8187ee4a438fc7581bc0596ddd /test | |
| parent | 2656199dc73c3febe595f8d55e34e30c6a94e1f6 (diff) | |
| parent | ef8a2134bc9e2e9f3aa08172b982c347332e14c1 (diff) | |
| download | pleroma-5f74aadaaf6f8cbd31ce251a03729c8d5276409a.tar.gz pleroma-5f74aadaaf6f8cbd31ce251a03729c8d5276409a.zip | |
Merge branch 'last_status_at' into 'develop'
MastoAPI AccountView: Change last_status_at to be a date
See merge request pleroma/pleroma!3978
Diffstat (limited to 'test')
| -rw-r--r-- | test/pleroma/web/mastodon_api/views/account_view_test.exs | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/test/pleroma/web/mastodon_api/views/account_view_test.exs b/test/pleroma/web/mastodon_api/views/account_view_test.exs index 3bb4970ca..d5b8ad8b0 100644 --- a/test/pleroma/web/mastodon_api/views/account_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/account_view_test.exs @@ -35,7 +35,8 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do          inserted_at: ~N[2017-08-15 15:47:06.597036],          emoji: %{"karjalanpiirakka" => "/file.png"},          raw_bio: "valid html. a\nb\nc\nd\nf '&<>\"", -        also_known_as: ["https://shitposter.zone/users/shp"] +        also_known_as: ["https://shitposter.zone/users/shp"], +        last_status_at: NaiveDateTime.utc_now()        })      expected = %{ @@ -74,7 +75,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do          fields: []        },        fqn: "shp@shitposter.club", -      last_status_at: nil, +      last_status_at: user.last_status_at |> NaiveDateTime.to_date() |> Date.to_iso8601(),        pleroma: %{          ap_id: user.ap_id,          also_known_as: ["https://shitposter.zone/users/shp"], | 
