Compare commits
1 Commits
30b5a1438b
...
a3a41dbefd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a41dbefd |
@@ -49,8 +49,6 @@ async def try_publish(
|
|||||||
if existing:
|
if existing:
|
||||||
if activity_type == "Create" and existing.activity_type != "Delete":
|
if activity_type == "Create" and existing.activity_type != "Delete":
|
||||||
return # already published (allow re-Create after Delete/unpublish)
|
return # already published (allow re-Create after Delete/unpublish)
|
||||||
if activity_type == "Update" and existing.activity_type == "Update":
|
|
||||||
return # already updated (Ghost fires duplicate webhooks)
|
|
||||||
if activity_type == "Delete" and existing.activity_type == "Delete":
|
if activity_type == "Delete" and existing.activity_type == "Delete":
|
||||||
return # already deleted
|
return # already deleted
|
||||||
elif activity_type in ("Delete", "Update"):
|
elif activity_type in ("Delete", "Update"):
|
||||||
|
|||||||
Reference in New Issue
Block a user