Fix if clause in activity_pub user_view
authorhref <href@random.sh>
Wed, 6 Feb 2019 17:42:19 +0000 (18:42 +0100)
committerhref <href@random.sh>
Wed, 6 Feb 2019 17:42:19 +0000 (18:42 +0100)
lib/pleroma/web/activity_pub/views/user_view.ex

index b9588bee59634f6990d1ebf8dccdbf8a44b95de7..1f6b591a5ee911b4a4d8d9a267ce1ec83957f9cb 100644 (file)
@@ -239,6 +239,8 @@ defmodule Pleroma.Web.ActivityPub.UserView do
 
     if offset < total do
       Map.put(map, "next", "#{iri}?page=#{page + 1}")
+    else
+      map
     end
   end
 end