Skip to content

Commit

Permalink
fix: /meme
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Antonenko committed Jan 28, 2023
1 parent ea7cd85 commit 04a2bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deutexrium/server/channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ defmodule Deutexrium.Server.Channel do
uri_list = File.read!(Persistence.root_for(id) |> Path.join("media.list"))
|> String.split("\n")
|> Enum.filter(fn x ->
x != "" and String.match?(URI.new!(x).path, path_pattern)
x != "" and String.match?(URI.new!(x).path || "", path_pattern)
end)

n = :rand.uniform(length(uri_list)) - 1
Expand Down

0 comments on commit 04a2bb0

Please sign in to comment.