devvit icon indicating copy to clipboard operation
devvit copied to clipboard

context.postId/commentId missing in one very specific situation

Open devvit-help-bot[bot] opened this issue 1 year ago • 0 comments

Details

Reproducable on http://sh.reddit.com|sh.reddit.com as well as iOS.

Found an issue with forms that are invoked from a menu item that is on more than one location (e.g. `location: ["post", "comment"]). The form handler doesn't have the postId or commentId assigned, but it is present if you only have one location assigned.

Here's a gist with code demonstrating the issue. https://gist.github.com/fsvreddit/b474970a949e6c7c6ee0639b13dfebbe

Additional info

Discord message: _Found an issue with forms that are invoked from a menu item that is on more than one location (e.g. `location: ["post", "comment"]). The form handler doesn't have the postId or commentId assigned, but it is present if you only have one location assigned.

Here's a gist with code demonstrating the issue. https://gist.github.com/fsvreddit/b474970a949e6c7c6ee0639b13dfebbe_

Message author: big.wheel

Discord link: https://discord.com/channels/1050224141732687912/1242689434009469061/1307726099064688731

devvit-help-bot[bot] avatar Nov 19 '24 18:11 devvit-help-bot[bot]