Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove no_limit_ids

Uku Taht503916980e46
diff --git a/config/runtime.exs b/config/runtime.exs
index b35f2b7dcc..78821990f5 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -81,7 +81,6 @@ log_level = String.to_existing_atom(System.get_env("LOG_LEVEL", "warn"))
log_format = System.get_env("LOG_FORMAT", "elixir")
is_selfhost = String.to_existing_atom(System.get_env("SELFHOST", "true"))
{site_limit, ""} = Integer.parse(System.get_env("SITE_LIMIT", "20"))
-no_limit_ids = System.get_env("NO_LIMIT_IDS", "") |> String.split(",") |> Enum.map(&String.trim/1)
disable_cron = String.to_existing_atom(System.get_env("DISABLE_CRON", "false"))
{user_agent_cache_limit, ""} = Integer.parse(System.get_env("USER_AGENT_CACHE_LIMIT", "1000"))
@@ -97,7 +96,6 @@ config :plausible,
mailer_email: mailer_email,
admin_emails: admin_emails,
site_limit: site_limit,
- no_limit_ids: no_limit_ids,
is_selfhost: is_selfhost
config :plausible, :selfhost,
diff --git a/lib/plausible/billing/billing.ex b/lib/plausible/billing/billing.ex
index 58ae7f9797..3ae8c55019 100644
--- a/lib/plausible/billing/billing.ex
+++ b/lib/plausible/billing/billing.ex
@@ -195,12 +195,9 @@ defmodule Plausible.Billing do
"""
@limit_accounts_since ~D[2021-05-05]
def sites_limit(user) do
- no_limit_ids = Application.get_env(:plausible, :no_limit_ids)
-
cond do
Timex.before?(user.inserted_at, @limit_accounts_since) -> nil
Application.get_env(:plausible, :is_selfhost) -> nil
- user.id in no_limit_ids -> nil
true -> Application.get_env(:plausible, :site_limit)
end
end