Skip to content
Snippets Groups Projects
Commit 62037690 authored by eal's avatar eal
Browse files

Merge branch 'fix/mastoapi-card' into 'develop'

MastoAPI: Add unimplemented status card endpoint.

See merge request pleroma/pleroma!71
parents c661cf50 18e1202a
No related branches found
No related tags found
No related merge requests found
......@@ -624,6 +624,11 @@ def empty_array(conn, _) do
json(conn, [])
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
actor = User.get_cached_by_ap_id(activity.data["actor"])
created_at = NaiveDateTime.to_iso8601(created_at)
......
......@@ -132,6 +132,7 @@ def user_fetcher(username) do
get "/statuses/:id", MastodonAPIController, :get_status
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/reblogged_by", MastodonAPIController, :reblogged_by
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment