Skip to content

Commit

Permalink
fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
backmeupplz committed Jun 5, 2023
1 parent a888e7f commit 3836f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/superclasses/Posts.sol
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ contract Posts is KetlGuarded {
uint postId = commentRequest.postId;
uint replyTo = commentRequest.replyTo;
// Check if parent post exists
require(posts[feedId][postId].sender != address(0), "Post not found");
require(posts[feedId][postId].author != address(0), "Post not found");
// Fetch parent comment and check if it exists
if (replyTo > 0) {
require(
comments[feedId][postId][replyTo - 1].sender != address(0),
comments[feedId][postId][replyTo - 1].author != address(0),
"Comment not found"
);
}
Expand Down

0 comments on commit 3836f9b

Please sign in to comment.