-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/59/image upload #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
for now it's an imageURL but not too complicated to make it keyname for S3 storage
glad att jag kan köra koden vid det här laget
| throw new ResourceNotFoundException(); | ||
|
|
||
| var item = baseItem.duplicate(); | ||
| var item = baseItem.duplicate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't even know myself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
calypso/src/main/java/se/datasektionen/calypso/controllers/admin/EditController.java
Lines 42 to 52 in 6b60f98
| @GetMapping("/admin/duplicate") | |
| public String duplicateForm(@RequestParam(name = "id") Long id, Authentication auth, Model model) { | |
| var user = (DAuthUserDetails) auth.getPrincipal(); | |
| var baseItem = itemRepository.findById(id).orElseThrow(ResourceNotFoundException::new); | |
| if (baseItem == null) | |
| throw new ResourceNotFoundException(); | |
| var item = baseItem.duplicate(); | |
| item.setAuthor(user.getUser()); |
nvm
closes #59
Adding functionality for including images in posts which is to display in chapter website, discord, RSS feeds
features:
notes:
what still has to be done after this:
useful image:
