Skip to content

Commit

Permalink
fix bluesky login display
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 6, 2024
1 parent e29dc52 commit cbc4c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 5 additions & 3 deletions mastodon/models/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ def refresh(self, save=True, did_check=True):
logger.warning("Bluesky: client not logged in.") # this should not happen
return False
if self.handle != profile.handle:
logger.warning(
f"ATProto refresh: handle mismatch {self.handle} from did doc -> {profile.handle} from PDS"
)
if self.handle:
logger.warning(
f"ATProto refresh: handle mismatch {self.handle} from did doc -> {profile.handle} from PDS"
)
self.handle = profile.handle
self.account_data = {
k: v for k, v in profile.__dict__.items() if isinstance(v, (int, str))
}
Expand Down
5 changes: 1 addition & 4 deletions mastodon/models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ def to_dict(self):
for k, v in self.__dict__.items()
if k
not in [
"_state",
"_client",
"_profile",
"api_domain",
"created",
"modified",
"last_refresh",
"last_reachable",
]
and not k.startswith("_")
}
return d

Expand Down

0 comments on commit cbc4c8d

Please sign in to comment.