Move shout configuration from :instance, update docs and changelog
This commit is contained in:
parent
4a181982c3
commit
d6432a65da
6 changed files with 11 additions and 10 deletions
|
|
@ -22,7 +22,7 @@ defmodule Pleroma.Web.ShoutChannel do
|
|||
def handle_in("new_msg", %{"text" => text}, %{assigns: %{user_name: user_name}} = socket) do
|
||||
text = String.trim(text)
|
||||
|
||||
if String.length(text) in 1..Pleroma.Config.get([:instance, :shout_limit]) do
|
||||
if String.length(text) in 1..Pleroma.Config.get([:shout, :limit]) do
|
||||
author = User.get_cached_by_nickname(user_name)
|
||||
author_json = AccountView.render("show.json", user: author, skip_visibility_check: true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue