Don't even try to progress post attachments

This commit is contained in:
Andrew Godwin 2023-05-15 16:59:34 -06:00
parent cec04e8ddb
commit 79e1f0da14

View file

@ -8,16 +8,11 @@ from stator.models import State, StateField, StateGraph, StatorModel
class PostAttachmentStates(StateGraph): class PostAttachmentStates(StateGraph):
new = State(try_interval=30000) new = State(externally_progressed=True)
fetched = State() fetched = State()
new.transitions_to(fetched) new.transitions_to(fetched)
@classmethod
async def handle_new(cls, instance):
# TODO: Fetch images to our own media storage
pass
class PostAttachment(StatorModel): class PostAttachment(StatorModel):
""" """