Use [] instead of nil
authorFrancis Dinh <normandy@firemail.cc>
Fri, 11 May 2018 05:48:56 +0000 (01:48 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Fri, 11 May 2018 05:48:56 +0000 (01:48 -0400)
lib/pleroma/web/ostatus/activity_representer.ex

index 4f1976e1ecf33d6d9cee87f3756ba2433ab2fc85..26d02a83111ca67586411dc0dd351c2b9333a750 100644 (file)
@@ -271,8 +271,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
            []}
         ] ++ mentions ++ author
 
-      _ ->
-        nil
+      _ -> []
     end
   end