Verified Commit 84b9a9d4 authored by href's avatar href
Browse files

TwitterAPI.ActivityView: Ignore unhandled activities

parent 30dc8166
......@@ -14,6 +14,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
alias Pleroma.HTML
import Ecto.Query
require Logger
defp query_context_ids([]), do: []
......@@ -276,6 +277,11 @@ def render(
def render("activity.json", %{activity: unhandled_activity}) do
Logger.warn("#{__MODULE__} unhandled activity: #{inspect(unhandled_activity)}")
def render_content(%{"type" => "Note"} = object) do
summary = object["summary"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment