Fix an issue when deleting an actor

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-12 18:19:36 +02:00
parent bfb04bb84d
commit 4ad67e1efc
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -1865,7 +1865,7 @@ defmodule Mobilizon.Actors do
limit \\ 10 limit \\ 10
) do ) do
Logger.debug("accumulate_paginated_elements") Logger.debug("accumulate_paginated_elements")
%Page{total: total, elements: new_elements} = page = method.(actor, page, limit) %Page{total: total, elements: new_elements} = method.(actor, page, limit)
elements = elements ++ new_elements elements = elements ++ new_elements
count = length(elements) count = length(elements)