mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
Improve the variable naming
This commit is contained in:
parent
c284c4e3e6
commit
7d33b53908
1 changed files with 4 additions and 4 deletions
|
@ -114,14 +114,14 @@ defmodule Pleroma.Web.StreamerView do
|
||||||
%{follower: follower, following: following} = item,
|
%{follower: follower, following: following} = item,
|
||||||
topic
|
topic
|
||||||
) do
|
) do
|
||||||
follower_count =
|
following_follower_count =
|
||||||
if Enum.any?([following.hide_followers_count, following.hide_followers]) do
|
if Enum.any?([following.hide_followers_count, following.hide_followers]) do
|
||||||
0
|
0
|
||||||
else
|
else
|
||||||
following.follower_count
|
following.follower_count
|
||||||
end
|
end
|
||||||
|
|
||||||
following_count =
|
following_following_count =
|
||||||
if Enum.any?([following.hide_follows_count, following.hide_follows]) do
|
if Enum.any?([following.hide_follows_count, following.hide_follows]) do
|
||||||
0
|
0
|
||||||
else
|
else
|
||||||
|
@ -141,8 +141,8 @@ defmodule Pleroma.Web.StreamerView do
|
||||||
},
|
},
|
||||||
following: %{
|
following: %{
|
||||||
id: following.id,
|
id: following.id,
|
||||||
follower_count: follower_count,
|
follower_count: following_follower_count,
|
||||||
following_count: following_count
|
following_count: following_following_count
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|> Jason.encode!()
|
|> Jason.encode!()
|
||||||
|
|
Loading…
Reference in a new issue