Skip to content

Commit

Permalink
Fix verification of new bluesky form submission
Browse files Browse the repository at this point in the history
When creating a new message provider we can't compare the
username/password to an existing one because it doesn't exist yet..
  • Loading branch information
mhagander committed Nov 27, 2024
1 parent aaa2f5d commit b553a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresqleu/util/messaging/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def clean(self):

# If the identifier or password has changed, we need to check them, otherwise avoid
# doing that as it causes an API call.
if (d['identifier'] != self.instance.config['identifier'] or d['password'] != self.instance.config['password']) or 'accessjwt' not in self.instance.config:
if (d['identifier'] != self.instance.config.get('identifier', None) or d['password'] != self.instance.config.get('password', None)) or 'accessjwt' not in self.instance.config:
try:
r = requests.post('https://bsky.social/xrpc/com.atproto.server.createSession', json={
'identifier': d['identifier'],
Expand Down

0 comments on commit b553a33

Please sign in to comment.