mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-21 22:58:09 +00:00
fix: bsky post when reply delete
This commit is contained in:
parent
807b4c05b9
commit
68c546914c
@ -166,6 +166,7 @@ class HumanPost(BaseModel, frozen=False):
|
||||
parent_post = None
|
||||
if data.reply:
|
||||
is_reply = True
|
||||
if hasattr(data.reply.parent, "post"):
|
||||
parent_post = HumanPost.parse_view(data.reply.parent)
|
||||
elif data.reason:
|
||||
is_repost = True
|
||||
@ -186,6 +187,7 @@ class HumanPost(BaseModel, frozen=False):
|
||||
parent_post = None
|
||||
if data.parent:
|
||||
is_reply = True
|
||||
if hasattr(data.parent, "post"):
|
||||
parent_post = HumanPost.parse_view(data.parent.post)
|
||||
elif data.post.embed and isinstance(data.post.embed, BskyViewRecord):
|
||||
is_quote = True
|
||||
|
Loading…
Reference in New Issue
Block a user