Don't even try to progress post attachments
This commit is contained in:
parent
cec04e8ddb
commit
79e1f0da14
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue