mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Don't even try to progress post attachments
This commit is contained in:
parent
cec04e8ddb
commit
79e1f0da14
1 changed files with 1 additions and 6 deletions
|
@ -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 a new issue