|
|
|
@ -64,7 +64,7 @@ public class Post { |
|
|
|
file.getParentFile().mkdirs(); |
|
|
|
file.getParentFile().mkdirs(); |
|
|
|
Files.writeString(file.toPath(),text, StandardCharsets.UTF_8); |
|
|
|
Files.writeString(file.toPath(),text, StandardCharsets.UTF_8); |
|
|
|
return post.save(); |
|
|
|
return post.save(); |
|
|
|
} catch (MessagingException | IOException | SQLException e) { |
|
|
|
} catch (Exception e) { |
|
|
|
LOG.warn("Failed to create post from {}",message); |
|
|
|
LOG.warn("Failed to create post from {}",message); |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
|