projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove chromium input hilight that clashes with our own
[akkoma]
/
lib
/
pleroma
/
emoji.ex
diff --git
a/lib/pleroma/emoji.ex
b/lib/pleroma/emoji.ex
index 7da1a24383406781f35c155791356256dbddb129..bb3190e08af3beffd96aebcb1dbe336a04be7281 100644
(file)
--- a/
lib/pleroma/emoji.ex
+++ b/
lib/pleroma/emoji.ex
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Emoji do
@moduledoc """
The emojis are loaded from:
defmodule Pleroma.Emoji do
@moduledoc """
The emojis are loaded from:
@@
-10,7
+14,7
@@
defmodule Pleroma.Emoji do
"""
use GenServer
@ets __MODULE__.Ets
"""
use GenServer
@ets __MODULE__.Ets
- @ets_options [:set, :protected, :named_table, {:read_concurrency, true}]
+ @ets_options [:
ordered_
set, :protected, :named_table, {:read_concurrency, true}]
@doc false
def start_link() do
@doc false
def start_link() do
@@
-153,7
+157,7
@@
defmodule Pleroma.Emoji do
end)
end
end)
end
- defp load_finmoji(_), do:
:ok
+ defp load_finmoji(_), do:
[]
defp load_from_file(file) do
if File.exists?(file) do
defp load_from_file(file) do
if File.exists?(file) do
@@
-165,7
+169,7
@@
defmodule Pleroma.Emoji do
defp load_from_file_stream(stream) do
stream
defp load_from_file_stream(stream) do
stream
- |> Stream.map(&String.
strip
/1)
+ |> Stream.map(&String.
trim
/1)
|> Stream.map(fn line ->
case String.split(line, ~r/,\s*/) do
[name, file] -> {name, file}
|> Stream.map(fn line ->
case String.split(line, ~r/,\s*/) do
[name, file] -> {name, file}