feat: add models part 4

This commit is contained in:
firedotguy
2026-02-05 00:20:26 +03:00
parent dd7b8c077e
commit 55630bc23f
6 changed files with 208 additions and 41 deletions

View File

@@ -71,5 +71,13 @@ class CantFollowYourself(Exception):
return 'Cannot follow yourself'
class Unauthorized(Exception):
def __str__(self) -> str:
return 'Auth required - refresh token'
def __str__(self):
return 'Auth required - refresh token'
class CantRepostYourPost(Exception):
def __str__(self):
return 'Cannot repost your own post'
class AlreadyReposted(Exception):
def __str__(self):
return 'Post already reposted'