From 5b3d88d1673e051ccd20d05474050e8583598e9d Mon Sep 17 00:00:00 2001 From: feruz Date: Tue, 2 Feb 2021 13:08:58 +0200 Subject: [PATCH] fix if link has comment parts --- src/utils/postUrlParser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/postUrlParser.js b/src/utils/postUrlParser.js index beec6b6d5..720f9ea3b 100644 --- a/src/utils/postUrlParser.js +++ b/src/utils/postUrlParser.js @@ -103,10 +103,11 @@ export default (url) => { if (match && match.length === 4) { if (match[3].indexOf('#') > -1) { const commentPart = match[3].split('@')[1]; + const splits = commentPart.split('/'); return { category: match[1], - author: commentPart.split('/')[0], - permlink: commentPart.split('/')[1], + author: splits[0], + permlink: splits[1], }; } return {