forked from AkkomaGang/akkoma
nodeinfo: expose configured upload limits
This commit is contained in:
parent
181f3bb56a
commit
676c97b8c7
1 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,12 @@ def nodeinfo(conn, %{"version" => "2.0"}) do
|
||||||
staffAccounts: staff_accounts,
|
staffAccounts: staff_accounts,
|
||||||
federation: federation_response,
|
federation: federation_response,
|
||||||
postFormats: Keyword.get(instance, :allowed_post_formats),
|
postFormats: Keyword.get(instance, :allowed_post_formats),
|
||||||
|
uploadLimits: %{
|
||||||
|
general: Keyword.get(instance, :upload_limit),
|
||||||
|
avatar: Keyword.get(instance, :avatar_upload_limit),
|
||||||
|
banner: Keyword.get(instance, :banner_upload_limit),
|
||||||
|
background: Keyword.get(instance, :background_upload_limit)
|
||||||
|
},
|
||||||
features: features
|
features: features
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue