diff options
author | Vitaly Takmazov | 2018-10-04 19:33:03 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-04 19:33:03 +0300 |
commit | 0cb00c61bd1ab203c66878d3c313b6f40b4cc707 (patch) | |
tree | b2d92995d1e33593908d9bfb420205f821452a77 /juick-server/src/main/java/com/juick/service | |
parent | 9848227c11f3cc4c0ccf6e01d0185c5fda506e80 (diff) |
fix some tests, disable Note endpoint until negotiation fixed
Diffstat (limited to 'juick-server/src/main/java/com/juick/service')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java index b0707232..e83e2705 100644 --- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java @@ -392,7 +392,13 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ msg.setTo(quoteUser); } msg.setUpdatedAt(rs.getTimestamp(10).toInstant()); - + if (StringUtils.isNotEmpty(msg.getAttachmentType())) { + try { + imagesService.setAttachmentMetadata(baseImagesUrl, msg); + } catch (Exception e) { + logger.warn("exception reading images for mid {} rid {}", msg.getMid(), msg.getRid(), e); + } + } return msg; }, mid, rid); |