reddit / devvit

Reddit for Developers
https://developers.reddit.com
BSD 3-Clause "New" or "Revised" License
63 stars 14 forks source link

More consistent object data from ModAction events #27

Open pl00h opened 6 months ago

pl00h commented 6 months ago

Noticed an inconsistency in the event object data for the ModAction event: event.targetComment uses the author property name but returns the author ID (event.targetPost uses the authorId property name instead)

Also, event.targetPost uses the selftext property instead of the body property used by the Post class