Pleroma v1.1.9-10-g42f76306+dev Pleroma.Emoji View Source

The emojis are loaded from:

  • emoji packs in INSTANCE-DIR/emoji
  • the files: config/emoji.txt and config/custom_emoji.txt
  • glob paths, nested folder is used as tag name for grouping e.g. priv/static/emoji/custom/nested_folder

This GenServer stores in an ETS table the list of the loaded emojis, and also allows to reload the list at runtime.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the path of the emoji name.

Returns all the emojos!!

Finds a matching group for the given emoji filename

Reloads the emojis from disk.

Link to this section Types

Link to this type

group_patterns()

View Source
group_patterns() :: keyword(patterns())
Link to this type

patterns()

View Source
patterns() :: pattern() | [pattern()]

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

find_all_emoji(dir, exts)

View Source

Returns the path of the emoji name.

Link to this function

get_all()

View Source
get_all() :: [{String.t(), String.t()}, ...]

Returns all the emojos!!

Link to this function

make_shortcode_to_file_map(pack_dir, exts)

View Source
Link to this function

match_extra(group_patterns, filename)

View Source
match_extra(group_patterns(), String.t()) :: atom() | nil

Finds a matching group for the given emoji filename

Link to this function

reload()

View Source
reload() :: :ok

Reloads the emojis from disk.