mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
Merge pull request #1128 from esteemapp/bugfix/profile-get
profile hot fix
This commit is contained in:
commit
6f2d4f900d
@ -112,14 +112,14 @@ class PostDropdownContainer extends PureComponent {
|
|||||||
const postUrl = getPostUrl(get(content, 'url'));
|
const postUrl = getPostUrl(get(content, 'url'));
|
||||||
|
|
||||||
Share.share({
|
Share.share({
|
||||||
message: `${content.title} ${postUrl}`,
|
message: `${get(content, 'title')} ${postUrl}`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
_addToBookmarks = () => {
|
_addToBookmarks = () => {
|
||||||
const { content, currentAccount, dispatch, intl } = this.props;
|
const { content, currentAccount, dispatch, intl } = this.props;
|
||||||
|
|
||||||
addBookmark(currentAccount.name, content.author, content.permlink)
|
addBookmark(get(currentAccount, 'name'), get(content, 'author'), get(content, 'permlink'))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
dispatch(
|
dispatch(
|
||||||
toastNotification(
|
toastNotification(
|
||||||
@ -143,7 +143,7 @@ class PostDropdownContainer extends PureComponent {
|
|||||||
_reblog = () => {
|
_reblog = () => {
|
||||||
const { content, currentAccount, dispatch, intl, isLoggedIn, pinCode } = this.props;
|
const { content, currentAccount, dispatch, intl, isLoggedIn, pinCode } = this.props;
|
||||||
if (isLoggedIn) {
|
if (isLoggedIn) {
|
||||||
reblog(currentAccount, pinCode, content.author, content.permlink)
|
reblog(currentAccount, pinCode, content.author, get(content, 'permlink', ''))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
dispatch(
|
dispatch(
|
||||||
toastNotification(
|
toastNotification(
|
||||||
@ -154,7 +154,7 @@ class PostDropdownContainer extends PureComponent {
|
|||||||
);
|
);
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
if (error.jse_shortmsg && String(error.jse_shortmsg).indexOf('has already reblogged')) {
|
if (String(get(error, 'jse_shortmsg', '')).indexOf('has already reblogged')) {
|
||||||
dispatch(
|
dispatch(
|
||||||
toastNotification(
|
toastNotification(
|
||||||
intl.formatMessage({
|
intl.formatMessage({
|
||||||
|
Loading…
Reference in New Issue
Block a user