mirror of https://gitlab.com/brutaldon/brutaldon
Change rate limit method from pace to throw
This will help with debugging.
This commit is contained in:
parent
50a44d1a43
commit
7af72887e9
|
@ -27,7 +27,7 @@ def get_mastodon(request):
|
||||||
client_secret = client.client_secret,
|
client_secret = client.client_secret,
|
||||||
api_base_url = client.api_base_id,
|
api_base_url = client.api_base_id,
|
||||||
access_token = request.session['access_token'],
|
access_token = request.session['access_token'],
|
||||||
ratelimit_method='pace')
|
ratelimit_method='throw')
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
client = Client.objects.get(api_base_id=request.session['instance'])
|
client = Client.objects.get(api_base_id=request.session['instance'])
|
||||||
|
@ -41,7 +41,7 @@ def get_mastodon(request):
|
||||||
client_secret = client.client_secret,
|
client_secret = client.client_secret,
|
||||||
access_token = user.access_token,
|
access_token = user.access_token,
|
||||||
api_base_url = client.api_base_id,
|
api_base_url = client.api_base_id,
|
||||||
ratelimit_method="pace")
|
ratelimit_method="throw")
|
||||||
return mastodon
|
return mastodon
|
||||||
|
|
||||||
def fullbrutalism_p(request):
|
def fullbrutalism_p(request):
|
||||||
|
|
Loading…
Reference in New Issue