From 42f1a098aa5f3e446964b439236b507d0002e837 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 4 May 2018 21:26:33 +0000 Subject: [PATCH] Fix build. Too eager with the fixing of unused variables. == Compilation error in file lib/pleroma/web/activity_pub/views/user_view.ex == ** (CompileError) lib/pleroma/web/activity_pub/views/user_view.ex:54: undefined function _total/0 (stdlib) lists.erl:1338: :lists.foreach/2 (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6 --- lib/pleroma/web/activity_pub/views/user_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex index 733e5fb57..d6bf71884 100644 --- a/lib/pleroma/web/activity_pub/views/user_view.ex +++ b/lib/pleroma/web/activity_pub/views/user_view.ex @@ -51,7 +51,7 @@ def collection(collection, iri, page, _total \\ nil) do offset = (page - 1) * 10 items = Enum.slice(collection, offset, 10) items = Enum.map(items, fn user -> user.ap_id end) - _total = _total || length(collection) + total = _total || length(collection) map = %{ "id" => "#{iri}?page=#{page}",