projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30dc816
)
TwitterAPI.ActivityView: Ignore unhandled activities
author
href
<href@random.sh>
Fri, 14 Dec 2018 16:24:33 +0000
(17:24 +0100)
committer
href
<href@random.sh>
Fri, 14 Dec 2018 17:09:59 +0000
(18:09 +0100)
lib/pleroma/web/twitter_api/views/activity_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/views/activity_view.ex
b/lib/pleroma/web/twitter_api/views/activity_view.ex
index e5caed28f5011162f20a96ee79d6c28bb69949c6..e4d364118ae55ecbd799d5a0d3134014c3a9160d 100644
(file)
--- a/
lib/pleroma/web/twitter_api/views/activity_view.ex
+++ b/
lib/pleroma/web/twitter_api/views/activity_view.ex
@@
-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
@@
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"]