Fix Dialyzer warnings

This commit is contained in:
Egor Kislitsyn 2020-02-25 18:34:56 +04:00
commit 22018adae6
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
16 changed files with 35 additions and 41 deletions

View file

@ -92,9 +92,9 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
openRegistrations: Config.get([:instance, :registrations_open]),
usage: %{
users: %{
total: stats.user_count || 0
total: Map.get(stats, :user_count, 0)
},
localPosts: stats.status_count || 0
localPosts: Map.get(stats, :status_count, 0)
},
metadata: %{
nodeName: Config.get([:instance, :name]),