From dc89aeb70bd3b380a6544d5606ce394233dbd686 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 23 Sep 2022 09:00:23 +0200 Subject: [PATCH] Fix permalink --- app/ap_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ap_object.py b/app/ap_object.py index 6c65b14..2889f0c 100644 --- a/app/ap_object.py +++ b/app/ap_object.py @@ -155,7 +155,7 @@ class Object: @cached_property def url(self) -> str | None: obj_url = self.ap_object.get("url") - if isinstance(obj_url, str): + if isinstance(obj_url, str) and obj_url: return obj_url elif obj_url: for u in ap.as_list(obj_url):