Fix `status.expires_at` type

This commit is contained in:
Egor Kislitsyn 2020-02-18 14:52:11 +04:00
parent 962eb8d4ac
commit 2ef70b55f5
No known key found for this signature in database
GPG Key ID: 1B49CB15B71E7805
1 changed files with 4 additions and 2 deletions

View File

@ -175,9 +175,11 @@ def render("show.json", %{activity: %{data: %{"object" => _object}} = activity}
expires_at =
with true <- client_posted_this_activity,
expiration when not is_nil(expiration) <-
%ActivityExpiration{scheduled_at: scheduled_at} <-
ActivityExpiration.get_by_activity_id(activity.id) do
expiration.scheduled_at
scheduled_at
else
_ -> nil
end
thread_muted? =