diff options
author | Mark Felder <feld@feld.me> | 2018-05-04 21:26:33 +0000 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2018-05-04 21:26:33 +0000 |
commit | 42f1a098aa5f3e446964b439236b507d0002e837 (patch) | |
tree | f712725359402f634caa3ab75ffba60bdf220c78 /lib | |
parent | 636f0fa40240f567a2171b347f0722d601ba63db (diff) | |
download | pleroma-42f1a098aa5f3e446964b439236b507d0002e837.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/views/user_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
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}", |