Skip to content
Snippets Groups Projects
Commit cc6689cc authored by lain's avatar lain
Browse files

Merge branch 'fix/views-ignore-unhandled-activites' into 'develop'

TwitterAPI.ActivityView: Ignore unhandled activities

See merge request pleroma/pleroma!547
parents 7281ab0b 84b9a9d4
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
alias Pleroma.HTML
import Ecto.Query
require Logger
defp query_context_ids([]), do: []
......@@ -277,6 +278,11 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
}
end
def render("activity.json", %{activity: unhandled_activity}) do
Logger.warn("#{__MODULE__} unhandled activity: #{inspect(unhandled_activity)}")
nil
end
def render_content(%{"type" => "Note"} = object) do
summary = object["summary"]
......
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