Skip to content

Commit

Permalink
bluesky: normalize handles to lower case, remove leading @ char
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Feb 20, 2024
1 parent 0fd6450 commit 1608890
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ Troubleshooting/FAQ
Changelog
---

### 6.3 - unreleased

* Bluesky:
* Normalize handles to lower case, remove leading `@` ([bridgy#1667](https://github.com/snarfed/bridgy/issues/1667)).

### 6.2 - 2023-09-15

Miscellaneous changes in `webutil`.
Expand Down
2 changes: 1 addition & 1 deletion oauth_dropins/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Callback(views.Callback):
OAuth callback stub.
"""
def dispatch_request(self):
handle = request.values['username'].strip()
handle = request.values['username'].strip().lower().removeprefix('@')
password = request.values['password'].strip()
state = request.values.get('state')

Expand Down
2 changes: 1 addition & 1 deletion oauth_dropins/webutil
Submodule webutil updated 1 files
+1 −0 flask_util.py

0 comments on commit 1608890

Please sign in to comment.