re-meme icon indicating copy to clipboard operation
re-meme copied to clipboard

Change logic on how 'Settings' button appears

Open 0xjim opened this issue 2 years ago • 0 comments

Currently, 'Settings' button appears on meme if publication.lensProfile.Id === userLogged.id

However, this will not work if the original meme creator sends/sells/gives away their ownership NFT of the meme.

Desired logic is "if I hold the ownership NFT, I should see the Settings button of the meme that I own".

The good thing is that Alan added the getPublicationByTokenId method and the getPublicationData method for the other way around. Read the connected wallet for the ownership NFT tokenId, display the Settings button when getPublicationByTokenId === publicationId

https://mumbai.polygonscan.com/address/0xa78e4a4d0367f0f4674130f0bb2653957ab5917e#readContract

0xjim avatar Sep 07 '22 16:09 0xjim