diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_irc/link_plugin/imgur.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lsg_irc/link_plugin/imgur.ex b/lib/lsg_irc/link_plugin/imgur.ex index af0b36a..5d74956 100644 --- a/lib/lsg_irc/link_plugin/imgur.ex +++ b/lib/lsg_irc/link_plugin/imgur.ex @@ -9,7 +9,7 @@ defmodule Nola.IRC.LinkPlugin.Imgur do Needs to have a Imgur API key configured: ``` - config :lsg, :imgur, + config :nola, :imgur, client_id: "xxxxxxxx", client_secret: "xxxxxxxxxxxxxxxxxxxx" ``` @@ -46,7 +46,7 @@ defmodule Nola.IRC.LinkPlugin.Imgur do end def expand_imgur_image(image_id, opts) do - client_id = Keyword.get(Application.get_env(:lsg, :imgur, []), :client_id, "42") + client_id = Keyword.get(Application.get_env(:nola, :imgur, []), :client_id, "42") headers = [{"Authorization", "Client-ID #{client_id}"}] options = [] case HTTPoison.get("https://api.imgur.com/3/image/#{image_id}", headers, options) do @@ -65,7 +65,7 @@ defmodule Nola.IRC.LinkPlugin.Imgur do end def expand_imgur_album(album_id, opts) do - client_id = Keyword.get(Application.get_env(:lsg, :imgur, []), :client_id, "42") + client_id = Keyword.get(Application.get_env(:nola, :imgur, []), :client_id, "42") headers = [{"Authorization", "Client-ID #{client_id}"}] options = [] case HTTPoison.get("https://api.imgur.com/3/album/#{album_id}", headers, options) do |