Submitted by WatchPug, also found by cccz
In the current implementation, even when the profiles owner burnt the ProfileNFT, as the profiles legacy, the publications can still be collected.
However, if the publication is a Mirror and there is a referralFee set by the original publication, the user wont be able to collect from a Mirror that was published by a burned profile.
FeeCollectModule.sol#L163-L172
In _processCollectWithReferral(), if there is a referralFee, contract will read referralRecipient from IERC721(HUB).ownerOf(referrerProfileId), if referrerProfileId is burned, the IERC721(HUB).ownerOf(referrerProfileId) will revert with ERC721: owner query for nonexistent token.
However, since we wish to allow the content to be collected, we should just treat referrals as non-existent in this situation.
Change to:
Zer0dot (Aave Lens) acknowledged and commented:
