1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Tweak URL parsing

This commit is contained in:
Thomas Sileo
2022-08-15 10:27:58 +02:00
parent 1e6a290fb3
commit 4f98ff6bbf
6 changed files with 12 additions and 10 deletions

View File

@ -116,7 +116,7 @@ class Actor:
@cached_property
def server(self) -> str:
return urlparse(self.ap_id).netloc
return urlparse(self.ap_id).hostname # type: ignore
class RemoteActor(Actor):