Update mastodon_api_controller.ex
This commit is contained in:
parent
26f8697400
commit
35515cfa66
|
@ -1029,7 +1029,7 @@ def render_notification(user, %{id: id, activity: activity, inserted_at: created
|
||||||
created_at =
|
created_at =
|
||||||
NaiveDateTime.to_iso8601(created_at)
|
NaiveDateTime.to_iso8601(created_at)
|
||||||
|> String.replace(~r/(\.\d+)?$/, ".000Z", global: false)
|
|> String.replace(~r/(\.\d+)?$/, ".000Z", global: false)
|
||||||
|
|
||||||
id = id |> to_string
|
id = id |> to_string
|
||||||
|
|
||||||
case activity.data["type"] do
|
case activity.data["type"] do
|
||||||
|
|
Loading…
Reference in New Issue