fix bluesky login display
This commit is contained in:
parent
e29dc521e2
commit
cbc4c8de77
2 changed files with 6 additions and 7 deletions
|
@ -158,9 +158,11 @@ class BlueskyAccount(SocialAccount):
|
||||||
logger.warning("Bluesky: client not logged in.") # this should not happen
|
logger.warning("Bluesky: client not logged in.") # this should not happen
|
||||||
return False
|
return False
|
||||||
if self.handle != profile.handle:
|
if self.handle != profile.handle:
|
||||||
logger.warning(
|
if self.handle:
|
||||||
f"ATProto refresh: handle mismatch {self.handle} from did doc -> {profile.handle} from PDS"
|
logger.warning(
|
||||||
)
|
f"ATProto refresh: handle mismatch {self.handle} from did doc -> {profile.handle} from PDS"
|
||||||
|
)
|
||||||
|
self.handle = profile.handle
|
||||||
self.account_data = {
|
self.account_data = {
|
||||||
k: v for k, v in profile.__dict__.items() if isinstance(v, (int, str))
|
k: v for k, v in profile.__dict__.items() if isinstance(v, (int, str))
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,15 +82,12 @@ class SocialAccount(TypedModel):
|
||||||
for k, v in self.__dict__.items()
|
for k, v in self.__dict__.items()
|
||||||
if k
|
if k
|
||||||
not in [
|
not in [
|
||||||
"_state",
|
|
||||||
"_client",
|
|
||||||
"_profile",
|
|
||||||
"api_domain",
|
|
||||||
"created",
|
"created",
|
||||||
"modified",
|
"modified",
|
||||||
"last_refresh",
|
"last_refresh",
|
||||||
"last_reachable",
|
"last_reachable",
|
||||||
]
|
]
|
||||||
|
and not k.startswith("_")
|
||||||
}
|
}
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue