Increase scope range a little

This commit is contained in:
pancakes 2024-11-25 01:48:34 +10:00
parent 2e61640b60
commit a66336ce40
No known key found for this signature in database
GPG key ID: ED53D426432B861B

View file

@ -13,7 +13,7 @@ if __name__ == "__main__":
elif not os.path.exists("accounts"):
os.mkdir("accounts")
Mastodon.create_app(name, scopes=["write:statuses"], to_file=f"accounts/{username}.client.secret", api_base_url=url, user_agent="fedifeeds")
Mastodon.create_app(name, scopes=["read:accounts", "write:statuses"], to_file=f"accounts/{username}.client.secret", api_base_url=url, user_agent="fedifeeds")
masto = Mastodon(f"accounts/{username}.client.secret")
print(masto.auth_request_url(scopes=["write:statuses"]))
masto.log_in(username, code=input("code: "), scopes=["write:statuses"], to_file=f"accounts/{username}.secret")
print(masto.auth_request_url(scopes=["read:accounts", "write:statuses"]))
masto.log_in(username, code=input("code: "), scopes=["read:accounts", "write:statuses"], to_file=f"accounts/{username}.secret")