Skip to content

Commit

Permalink
fix item/post api
Browse files Browse the repository at this point in the history
  • Loading branch information
mein Name authored and alphatownsman committed Feb 9, 2025
1 parent 44e4104 commit f45d9f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions takahe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,14 @@ def to_mastodon_json(self, source=False):
}
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):
"""
Expand Down

0 comments on commit f45d9f4

Please sign in to comment.