diff options
author | 2018-01-12 11:34:43 +0300 | |
---|---|---|
committer | 2018-01-12 11:34:43 +0300 | |
commit | 40b392f1d63f6aaa8794beaff4c0432dd29f1858 (patch) | |
tree | 96bec459d88522124196d9d8ca92e677b48d2da8 /juick-api/src/main/java/com/juick/api/controllers/Post.java | |
parent | 59d08c3fe59077238e7f7774be359a7966ed522c (diff) |
refactoring and tests fixes
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers/Post.java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/Post.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Post.java b/juick-api/src/main/java/com/juick/api/controllers/Post.java index 92daf2e7..27a0e3c8 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Post.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Post.java @@ -19,6 +19,7 @@ package com.juick.api.controllers; import com.juick.User; import com.juick.api.ApiServer; +import com.juick.api.EmailManager; import com.juick.server.util.*; import com.juick.service.MessagesService; import com.juick.service.SubscriptionService; @@ -252,7 +253,7 @@ public class Post { }); String[] inReplyToHeaders = msg.getHeader("In-Reply-To"); if (inReplyToHeaders != null && inReplyToHeaders.length > 0) { - Scanner inReplyToScanner = new Scanner(inReplyToHeaders[0].trim()).useDelimiter("\\.|@|<"); + Scanner inReplyToScanner = new Scanner(inReplyToHeaders[0].trim()).useDelimiter(EmailManager.MSGID_PATTERN); int mid = Integer.parseInt(inReplyToScanner.next()); int rid = Integer.parseInt(inReplyToScanner.next()); logger.info("Message is reply to #{}/{}", mid, rid); |