diff --git a/app/actions/remote/post.ts b/app/actions/remote/post.ts index 5291850a4..0ac390af0 100644 --- a/app/actions/remote/post.ts +++ b/app/actions/remote/post.ts @@ -53,7 +53,7 @@ export const createPost = async (serverUrl: string, post: Partial, files: return {error}; } - const currentUserId = queryCurrentUserId(operator.database); + const currentUserId = await queryCurrentUserId(operator.database); const timestamp = Date.now(); const pendingPostId = post.pending_post_id || `${currentUserId}:${timestamp}`; @@ -68,6 +68,7 @@ export const createPost = async (serverUrl: string, post: Partial, files: pending_post_id: pendingPostId, create_at: timestamp, update_at: timestamp, + delete_at: 0, } as Post; if (files.length) {