mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	Fix in tag handling
This commit is contained in:
		@@ -69,12 +69,12 @@ class Object:
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def tags(self) -> list[ap.RawObject]:
 | 
			
		||||
        return self.ap_object.get("tag", [])
 | 
			
		||||
        return ap.as_list(self.ap_object.get("tag", []))
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def attachments(self) -> list["Attachment"]:
 | 
			
		||||
        attachments = []
 | 
			
		||||
        for obj in self.ap_object.get("attachment", []):
 | 
			
		||||
        for obj in ap.as_list(self.ap_object.get("attachment", [])):
 | 
			
		||||
            proxied_url = proxied_media_url(obj["url"])
 | 
			
		||||
            attachments.append(
 | 
			
		||||
                Attachment.parse_obj(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user