Skip to content

Commit

Permalink
feat: disallow users from granting cred to their own posts
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonplau authored and Wilson Lau committed Jul 10, 2023
1 parent eb163d0 commit 8e1d336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/OBSSStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ contract OBSSStorage is OwnableUpgradeable, ERC2771Recipient {
if (
!ketlCredGranted[reactionRequest.feedId][reactionRequest.postId][
reactionRequest.commentId
][_msgSender()]
][_msgSender()] && post.author != _msgSender()
) {
ketlCredGranted[reactionRequest.feedId][reactionRequest.postId][
reactionRequest.commentId
Expand Down

0 comments on commit 8e1d336

Please sign in to comment.