Merge branch 'fix/status-view/expires_at' into 'develop'
Fix `status.expires_at` type Closes #1573 See merge request pleroma/pleroma!2222
This commit is contained in:
commit
cf8307e71c
2 changed files with 23 additions and 2 deletions
|
|
@ -175,9 +175,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
|
||||
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? =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue