fix item/post api

This commit is contained in:
mein Name 2025-02-09 08:59:08 -05:00 committed by Henri Dickson
parent 44e4104861
commit f45d9f41d3

View file

@ -850,6 +850,14 @@ class Identity(models.Model):
}
return result
def to_mastodon_mention_json(self):
return {
"id": str(self.pk),
"username": self.username or "",
"url": self.absolute_profile_uri() or "",
"acct": self.handle or "",
}
class Follow(models.Model):
"""