Fix the issue with HTML scrubber
This commit is contained in:
parent
cd387f8693
commit
45ba10bf47
3 changed files with 34 additions and 10 deletions
|
|
@ -150,14 +150,20 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
{:ok, activity}
|
||||
|
||||
{:fake, true, map, recipients} ->
|
||||
{:ok,
|
||||
%Activity{
|
||||
data: map,
|
||||
local: local,
|
||||
actor: map["actor"],
|
||||
recipients: recipients,
|
||||
id: "pleroma:fakeid"
|
||||
}}
|
||||
map =
|
||||
map
|
||||
|> put_in(["object", "fake"], true)
|
||||
|
||||
activity = %Activity{
|
||||
data: map,
|
||||
local: local,
|
||||
actor: map["actor"],
|
||||
recipients: recipients,
|
||||
id: "pleroma:fakeid"
|
||||
}
|
||||
|
||||
# Pleroma.Web.RichMedia.Helpers.fetch_data_for_activity(activity)
|
||||
{:ok, activity}
|
||||
|
||||
error ->
|
||||
{:error, error}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue