mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 13:53:23 +03:00
Merge pull request #1107 from esteemapp/feature/mention-parent-post
created mention parent posts feature
This commit is contained in:
commit
b2bee19402
@ -341,6 +341,7 @@ class ApplicationContainer extends Component {
|
|||||||
params = {
|
params = {
|
||||||
author: get(push, 'source', ''),
|
author: get(push, 'source', ''),
|
||||||
permlink: fullPermlink,
|
permlink: fullPermlink,
|
||||||
|
isHasParentPost: true,
|
||||||
};
|
};
|
||||||
key = fullPermlink;
|
key = fullPermlink;
|
||||||
routeName = ROUTES.SCREENS.POST;
|
routeName = ROUTES.SCREENS.POST;
|
||||||
|
@ -93,7 +93,7 @@ class NotificationContainer extends Component {
|
|||||||
params = {
|
params = {
|
||||||
author,
|
author,
|
||||||
permlink,
|
permlink,
|
||||||
isHasParentPost: get(data, 'parent_permlink'),
|
isHasParentPost: get(data, 'parent_permlink') || get(data, 'type') === 'mention',
|
||||||
};
|
};
|
||||||
} else if (type === 'follow') {
|
} else if (type === 'follow') {
|
||||||
routeName = ROUTES.SCREENS.PROFILE;
|
routeName = ROUTES.SCREENS.PROFILE;
|
||||||
|
@ -96,8 +96,9 @@ class PostContainer extends Component {
|
|||||||
author,
|
author,
|
||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
if (isHasParentPost && post)
|
if (isHasParentPost && post && get(post, 'parent_author') && get(post, 'parent_permlink')) {
|
||||||
this._loadPost(get(post, 'parent_author'), get(post, 'parent_permlink'), true);
|
this._loadPost(get(post, 'parent_author'), get(post, 'parent_permlink'), true);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PostScreen
|
<PostScreen
|
||||||
|
Loading…
Reference in New Issue
Block a user