Views: wrap activity rendering in a rescue

this avoids complete timeline breakage when an activity fucks up
rendering.
This commit is contained in:
href 2019-01-27 19:15:35 +01:00
commit f83bae7c22
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
3 changed files with 29 additions and 2 deletions

View file

@ -114,7 +114,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|> Map.put(:context_ids, context_ids)
|> Map.put(:users, users)
render_many(
safe_render_many(
opts.activities,
ActivityView,
"activity.json",