mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 23:11:13 +00:00
MastoAPI: Add unimplemented status card endpoint.
This commit is contained in:
parent
c661cf504b
commit
18e1202a3b
|
@ -624,6 +624,11 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
||||||
json(conn, [])
|
json(conn, [])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def empty_object(conn, _) do
|
||||||
|
Logger.debug("Unimplemented, returning an empty object")
|
||||||
|
json(conn, %{})
|
||||||
|
end
|
||||||
|
|
||||||
def render_notification(user, %{id: id, activity: activity, inserted_at: created_at} = _params) do
|
def render_notification(user, %{id: id, activity: activity, inserted_at: created_at} = _params) do
|
||||||
actor = User.get_cached_by_ap_id(activity.data["actor"])
|
actor = User.get_cached_by_ap_id(activity.data["actor"])
|
||||||
created_at = NaiveDateTime.to_iso8601(created_at)
|
created_at = NaiveDateTime.to_iso8601(created_at)
|
||||||
|
|
|
@ -132,6 +132,7 @@ defmodule Pleroma.Web.Router do
|
||||||
|
|
||||||
get "/statuses/:id", MastodonAPIController, :get_status
|
get "/statuses/:id", MastodonAPIController, :get_status
|
||||||
get "/statuses/:id/context", MastodonAPIController, :get_context
|
get "/statuses/:id/context", MastodonAPIController, :get_context
|
||||||
|
get "/statuses/:id/card", MastodonAPIController, :empty_object
|
||||||
get "/statuses/:id/favourited_by", MastodonAPIController, :favourited_by
|
get "/statuses/:id/favourited_by", MastodonAPIController, :favourited_by
|
||||||
get "/statuses/:id/reblogged_by", MastodonAPIController, :reblogged_by
|
get "/statuses/:id/reblogged_by", MastodonAPIController, :reblogged_by
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue