r/Devvit • • 19h ago

Help App not published question: when I try to comment via my devvit app, it is doing it as the app itself instead of the actual user

2 Upvotes

4 comments sorted by

1

u/shruest 19h ago

That’s expected behaviour. Only published apps can post as users.

1

u/ryry50583583 17h ago

Approved publishes*

2

u/superpoopy15 6h ago

thank you both!

1

u/ExistingFriendship23 4h ago

It only needs to be approved/published for other users in playtest/unpublished apps, Reddit intentionally falls back to the app account for anyone except the app owner.

If it's posting as the app even when you (the app owner) test it, check that you have:

  1. "asUser": ["SUBMIT_COMMENT"] under permissions.reddit in devvit.json
  2. runAs: 'USER' passed to reddit.submitComment(...)
  3. Re-uploaded / updated the app on your test subreddit after changing permissions.