little changes and typos
This commit is contained in:
parent
851c5bf093
commit
08d64b977f
3 changed files with 6 additions and 6 deletions
|
|
@ -15,8 +15,8 @@ defmodule Pleroma.Emoji do
|
|||
use GenServer
|
||||
|
||||
@type pattern :: Regex.t() | module() | String.t()
|
||||
@type patterns :: pattern | [pattern]
|
||||
@type group_patterns :: keyword(patterns)
|
||||
@type patterns :: pattern() | [pattern()]
|
||||
@type group_patterns :: keyword(patterns())
|
||||
|
||||
@ets __MODULE__.Ets
|
||||
@ets_options [:ordered_set, :protected, :named_table, {:read_concurrency, true}]
|
||||
|
|
@ -80,7 +80,7 @@ defmodule Pleroma.Emoji do
|
|||
|
||||
defp load do
|
||||
finmoji_enabled = Keyword.get(Application.get_env(:pleroma, :instance), :finmoji_enabled)
|
||||
shortcode_globs = Keyword.get(Application.get_env(:pleroma, :emoji, []), :shortcode_globs, [])
|
||||
shortcode_globs = Application.get_env(:pleroma, :emoji)[:shortcode_globs] || []
|
||||
|
||||
emojis =
|
||||
(load_finmoji(finmoji_enabled) ++
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue