Add media upload endpoint.
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index 16ed7bd559e0f8847ecc7efe7f238a3f79d365c2..a172875df320f9087208ba9ac15004c273bde98b 100644 (file)
@@ -29,7 +29,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
     created_at = (object["published"] || "")
     |> NaiveDateTime.from_iso8601!
     |> NaiveDateTime.to_iso8601
-    |> String.replace(~r/\.\d+$/, ".000Z")
+    |> String.replace(~r/(\.\d+)?$/, ".000Z", global: false)
 
     %{
       id: activity.id,