If the content Lead creates a video with an autoIssueNft parameter set, then the mappings would crash as mappings currently don't recognize Lead as a valid content actor. This issue is present in many other mappings such as OpenAuctionStarted, EnglishAuctionStarted, NFTIssued etc. because a common function (convertContentActorToChannelOrNftOwner) is used everywhere.
Context
Discovered while working on https://github.com/Joystream/joystream/issues/4842
If the content Lead creates a video with an
autoIssueNft
parameter set, then the mappings would crash as mappings currently don't recognizeLead
as a valid content actor. This issue is present in many other mappings such asOpenAuctionStarted
,EnglishAuctionStarted
,NFTIssued
etc. because a common function (convertContentActorToChannelOrNftOwner
) is used everywhere.https://github.com/Joystream/joystream/blob/d1448236349154afa2c1a725f7144990c37d5042/query-node/mappings/src/content/utils.ts#L446
Fix
Gracefully handle actions by
Lead
asContentActor