Fix permalink

main
Thomas Sileo 2022-09-23 09:00:23 +02:00
parent 25d3daa6d2
commit dc89aeb70b
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class Object:
@cached_property @cached_property
def url(self) -> str | None: def url(self) -> str | None:
obj_url = self.ap_object.get("url") obj_url = self.ap_object.get("url")
if isinstance(obj_url, str): if isinstance(obj_url, str) and obj_url:
return obj_url return obj_url
elif obj_url: elif obj_url:
for u in ap.as_list(obj_url): for u in ap.as_list(obj_url):