1
0
Fork 0
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:
Ben Busby 2023-07-11 11:27:45 -06:00
parent 2200cabaef
commit dcc4a9f4b1
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
3 changed files with 1 additions and 3 deletions

View file

@ -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