projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add media upload endpoint.
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
status_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 16ed7bd559e0f8847ecc7efe7f238a3f79d365c2..a172875df320f9087208ba9ac15004c273bde98b 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/status_view.ex
@@
-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,