-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change read:me
scope to profile
scope
#30357
Change read:me
scope to profile
scope
#30357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it affect existing registrations with read:me
?
There shouldn't be any yet, given it's only in bleeding-edge We could always do a migration on oauth_applications and oauth_tokens to rewrite |
It's been merged roughly a month ago, and two weeks ago you made it the default for new apps created through the settings interface. Looking into mastodon.social's database, there are 4 applications with |
read:me
scope to profile
scope
Oh! Good point! I'll add database migrations to this PR then; basically a find scopes LIKE %read:me% and then each in batches to rewrite? |
Have updated with the migration (I made it reversible just in case) |
5032d8b
to
47dbe08
Compare
@ClearlyClaire your changes make sense to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This will need a documentation PR.
@renchap already started it: mastodon/documentation#1445 |
This would resolve #30355, though introduced a quirk with the scope parser logic, which I'm not sure I've solved in an acceptable manner?
Basically the
profile
scope would otherwise default toall
which isread and write
, but forprofile
it will only ever beread
.