only top for doc

This commit is contained in:
j 2023-12-01 20:45:47 +01:00
commit 6c9f688ee7
3 changed files with 8 additions and 2 deletions

View file

@ -124,6 +124,8 @@ class Item(models.Model):
key = key.replace('og:', '')
data[key] = value
data["url"] = self.url
if "m/documents" in self.url:
data["type"] = "document"
return data