fix item/post api
This commit is contained in:
parent
44e4104861
commit
f45d9f41d3
1 changed files with 8 additions and 0 deletions
|
@ -850,6 +850,14 @@ class Identity(models.Model):
|
||||||
}
|
}
|
||||||
return result
|
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):
|
class Follow(models.Model):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue