Fix warning
authorhref <href@random.sh>
Fri, 14 Dec 2018 12:56:42 +0000 (13:56 +0100)
committerhref <href@random.sh>
Fri, 14 Dec 2018 12:56:42 +0000 (13:56 +0100)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 4db7cd60f0e56530ad4f46e64f31bc02a5cf8733..0414d73d86d815af5a4f3b64d1b06f6edc284789 100644 (file)
@@ -1061,7 +1061,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
     response = %{
       id: to_string(id),
       type: mastodon_type,
-      created_at: CommonAPI.Utils.to_masto_date(activity.inserted_at),
+      created_at: CommonAPI.Utils.to_masto_date(created_at),
       account: AccountView.render("account.json", %{user: actor, for: user})
     }