re-meme
re-meme copied to clipboard
Change logic on how 'Settings' button appears
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