Merge pull request #2103 from ecency/nt/post-duplication-fix

Nt/post duplication fix
This commit is contained in:
Feruz M 2021-12-16 21:01:32 +02:00 committed by GitHub
commit 75542fff43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 4 deletions

View File

@ -157,6 +157,7 @@ const CommentsContainer = ({
const _handleOnReplyPress = (item) => {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: 'editor_reply',
params: {
isReply: true,
post: item,
@ -179,6 +180,7 @@ const CommentsContainer = ({
const _handleOnEditPress = (item) => {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: `editor_edit_reply_${item.permlink}`,
params: {
isEdit: true,
isReply: true,

View File

@ -12,6 +12,7 @@ const PostButtonView = ({ navigation }) => (
onPress={() =>
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: 'editor_post',
})
}
activeOpacity={1}

View File

@ -224,6 +224,7 @@ class PostDropdownContainer extends PureComponent {
if (isLoggedIn) {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key:`editor_post_${content.permlink}`,
params: {
isReply: true,
post: content,

View File

@ -8,15 +8,12 @@ import get from 'lodash/get';
import { toastNotification } from '../../../redux/actions/uiAction';
// Dsteem
import { deleteComment, getActiveVotes } from '../../../providers/hive/dhive';
import { deleteComment } from '../../../providers/hive/dhive';
import { getPostReblogs } from '../../../providers/ecency/ecency';
// Constants
import { default as ROUTES } from '../../../constants/routeNames';
// Utilities
import { parseActiveVotes } from '../../../utils/postParser';
// Component
import PostDisplayView from '../view/postDisplayView';
@ -84,6 +81,7 @@ const PostDisplayContainer = ({
const _handleOnReplyPress = () => {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: 'editor_replay',
params: {
isReply: true,
post,
@ -98,6 +96,7 @@ const PostDisplayContainer = ({
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: `editor_post_${post.permlink}`,
params: {
isEdit: true,
isReply,

View File

@ -55,6 +55,7 @@ const CommunityContainer = ({ children, navigation, currentAccount, pinCode, isL
const _handleNewPostButtonPress = () => {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: 'editor_community_post',
params: {
community: [tag],
},

View File

@ -111,6 +111,7 @@ const DraftsContainer = ({ currentAccount, intl, navigation, dispatch }) => {
navigation.navigate({
routeName: ROUTES.SCREENS.EDITOR,
key: `editor_draft_${id}`,
params: {
draft: selectedDraft,
fetchPost: _getDrafts,