From: Mark Felder Date: Fri, 4 May 2018 21:26:33 +0000 (+0000) Subject: Fix build. Too eager with the fixing of unused variables. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=42f1a098aa5f3e446964b439236b507d0002e837;p=akkoma 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 --- 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 @@ defmodule Pleroma.Web.ActivityPub.UserView 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}",