mirror of
https://github.com/benbusby/farside.git
synced 2025-04-30 15:40:02 +00:00
Mark redirecting instances as inacessible
Too many instances redirect to either non-functional or spam sites. The new behavior is to only allow 200-300 responses to mark an instance as accessible.
This commit is contained in:
parent
2200cabaef
commit
dcc4a9f4b1
3 changed files with 1 additions and 3 deletions
|
@ -29,7 +29,7 @@ defmodule Farside.Instances do
|
|||
|> then(&elem(&1, 1))
|
||||
|> Map.get(:status_code)
|
||||
|> case do
|
||||
n when n < 400 ->
|
||||
n when n < 300 ->
|
||||
IO.puts("#{@debug_spacer}✓ [#{n}]")
|
||||
:good
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue