aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-07 14:52:19 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-07 14:52:19 +0200
commit60b4b0d725aefdca3eedd2d7708b0c96ee60c5f4 (patch)
treed638ec8ad5d886ed5192bb516657bc1827b6f6ca /lib
parenta41aa4e4898660fffb9a54070d16e2c3a5373d71 (diff)
downloadpleroma-60b4b0d725aefdca3eedd2d7708b0c96ee60c5f4.tar.gz
Safety measures.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/ostatus/activity_representer.ex2
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']},