forked from tsileo/microblog.pub
-
Notifications
You must be signed in to change notification settings - Fork 3
Refactor the create new post action #8
Copy link
Copy link
Open
Labels
upkeepingNo changes in functionality: likely improving tests and refactoring to improve code qualityNo changes in functionality: likely improving tests and refactoring to improve code quality
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
upkeepingNo changes in functionality: likely improving tests and refactoring to improve code qualityNo changes in functionality: likely improving tests and refactoring to improve code quality
The
@router.post("/actions/new", response_model=None)(link) is one of the foundational actions in this software.Currently, it packs too much on it, including:
I believe that at least file processing should be separated to facilitate functionalities like this one. Moreover, I also think that "updating" the AP boxes should be separated, which would make sense if we go in this direction.