diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-07 14:52:19 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-07 14:52:19 +0200 |
commit | 60b4b0d725aefdca3eedd2d7708b0c96ee60c5f4 (patch) | |
tree | d638ec8ad5d886ed5192bb516657bc1827b6f6ca /lib | |
parent | a41aa4e4898660fffb9a54070d16e2c3a5373d71 (diff) | |
download | pleroma-60b4b0d725aefdca3eedd2d7708b0c96ee60c5f4.tar.gz |
Safety measures.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/activity_representer.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/activity_representer.ex b/lib/pleroma/web/ostatus/activity_representer.ex index 076ead41a..66e9b0ec2 100644 --- a/lib/pleroma/web/ostatus/activity_representer.ex +++ b/lib/pleroma/web/ostatus/activity_representer.ex @@ -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']}, |