mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 03:42:10 +03:00
fix if link has comment parts
This commit is contained in:
parent
42e4dc8674
commit
5b3d88d167
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user