This is the backend half of uploading an image as a header for Phame Blogs. Allows you to upload image, or delete it. Ref T10901
Details
Details
- Reviewers
epriestley - Maniphest Tasks
- T10901: Support title art for Phame blogs
- Commits
- rP0d4902a0e5d9: Add ability to set a header image per Phame blog
Go to Manage Blog, visit Edit Header Image, Upload snarky file. See snarky file on Manage page. Edit Header Image, click delete, save, see file goes away.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Nice! Couple of nits inline but nothing substantive.
src/applications/phame/controller/blog/PhameBlogHeaderPictureController.php | ||
---|---|---|
7–9 | You should be able to get rid of this method, this should be the default behavior. | |
60–66 | This should become a transaction at some point, PhabricatorProjectTransaction::TYPE_IMAGE starting in PhabricatorProjectEditPictureController is an example, I think. But I may modularize all of these under T9789 while doing the custom domain stuff anyway, and swapping this for a transaction is easy to do in a followup. | |
src/applications/phame/query/PhameBlogQuery.php | ||
118 | Unused? |