mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 05:42:33 +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 = {
|
||||
author: get(push, 'source', ''),
|
||||
permlink: fullPermlink,
|
||||
isHasParentPost: true,
|
||||
};
|
||||
key = fullPermlink;
|
||||
routeName = ROUTES.SCREENS.POST;
|
||||
|
@ -93,7 +93,7 @@ class NotificationContainer extends Component {
|
||||
params = {
|
||||
author,
|
||||
permlink,
|
||||
isHasParentPost: get(data, 'parent_permlink'),
|
||||
isHasParentPost: get(data, 'parent_permlink') || get(data, 'type') === 'mention',
|
||||
};
|
||||
} else if (type === 'follow') {
|
||||
routeName = ROUTES.SCREENS.PROFILE;
|
||||
|
@ -96,8 +96,9 @@ class PostContainer extends Component {
|
||||
author,
|
||||
} = 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);
|
||||
}
|
||||
|
||||
return (
|
||||
<PostScreen
|
||||
|
Loading…
Reference in New Issue
Block a user