mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-23 01:35:28 +00:00
Safety measures.
This commit is contained in:
parent
a41aa4e489
commit
60b4b0d725
|
@ -128,7 +128,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
|
|||
|
||||
author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
|
||||
|
||||
mentions = activity.data["to"] |> get_mentions
|
||||
mentions = (activity.data["to"] || []) |> get_mentions
|
||||
[
|
||||
{:"activity:object-type", ['http://activitystrea.ms/schema/1.0/activity']},
|
||||
{:"activity:verb", ['http://activitystrea.ms/schema/1.0/follow']},
|
||||
|
|
Loading…
Reference in a new issue