You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/capabilities/server/userActions.md
+23-25Lines changed: 23 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# User Actions
2
2
3
-
User actions allow your app to perform certain actions—such as creating posts, comments, or subscribing to subreddits—on behalf of the user, rather than the app account. This enables stronger user engagement while ensuring user control and transparency.
3
+
User actions allow your app to submit posts, submit comments, and subscribe to the current subreddit on behalf of the logged in user. These actions occur on the logged in user's account instead of the app account. This enables stronger user engagement while ensuring user control and transparency.
4
4
5
5
---
6
6
@@ -13,17 +13,19 @@ By default, apps make posts or comments using their associated app account. With
13
13
14
14
---
15
15
16
-
## Guidelines
16
+
Requirements
17
+
--------------
17
18
18
19
To ensure a positive user experience and compliance with Reddit policies:
19
20
20
-
-**Be transparent:** Inform users and show them the content that will be posted on their behalf.
21
-
-**No auto-creation:** Users must opt in to allow the app to post or comment on their behalf. This can only happen on an explicit action.
22
-
-**Provide user control:** If you are relying on persistent user opt-in, you must make it clear on how the user can opt-out.
23
-
21
+
-**Always ask permission:** Your app must always inform users before posting, commenting, or subscribing on their behalf. This can only happen on an explicit manual action, e.g. from a button.
22
+
-**No automated actions:** Users must explicitly opt-in to the app acting on their behalf. Do not mislead or surprise users.
23
+
-**Establish a reporting flow:** Ensure `userGeneratedContent` is correctly set for posts submitted on behalf of the user.
24
+
-**Do not gate functionality behind subscribing:** Users should not be made to subscribe to the current subreddit to access any part of your app.
25
+
-**Remember the human:** Follow Reddit's safety and compliance guidelines for user-generated content.
24
26
25
27
:::note
26
-
Apps using user actions must follow these guidelines to be approved.
28
+
Apps using user actions must follow these requirements to be approved.
27
29
:::
28
30
29
31
---
@@ -59,6 +61,7 @@ After enabling, you can call certain Reddit APIs on behalf of the user by passin
59
61
Currently, the following APIs support this option:
The subscribe API does not take a `runAs` parameter; it subscribes as the user by default (if specified in `devvit.json` and approved).
118
+
The [subscribeToCurrentSubreddit()](../../api/redditapi/RedditAPIClient/classes/RedditAPIClient.md#subscribetocurrentsubreddit) API does not take a `runAs` parameter; it subscribes as the user by default (if specified in `devvit.json` and approved).
res.status(500).json({ status: 'error', message: 'Failed to subscribe' });
129
+
}
130
+
});
121
131
```
122
132
123
-
:::note
124
-
There is no API to check if the user is already subscribed to the subreddit. You may want to store the subscription state in Redis to provide contextually aware UI.
125
-
:::
126
-
127
-
---
128
-
129
-
## Best practices
130
-
131
-
- Always inform users before posting or commenting on their behalf.
132
-
- Require explicit user opt-in for all user actions.
133
-
- Use `userGeneratedContent` for all user-submitted posts.
134
-
- Store user consent and subscription state if needed for your app's UX.
135
-
- Follow Reddit's safety and compliance guidelines for user-generated content.
133
+
For user privacy there is no API to check if the user is already subscribed to the current subreddit. You may want to store the subscription state in Redis to provide contextually aware UI.
Copy file name to clipboardExpand all lines: versioned_docs/version-0.12/capabilities/server/userActions.md
+24-26Lines changed: 24 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# User actions
1
+
# User Actions
2
2
3
-
User actions allow your app to perform certain actions—such as creating posts, comments, or subscribing to subreddits—on behalf of the user, rather than the app account. This enables stronger user engagement while ensuring user control and transparency.
3
+
User actions allow your app to submit posts, submit comments, and subscribe to the current subreddit on behalf of the logged in user. These actions occur on the logged in user's account instead of the app account. This enables stronger user engagement while ensuring user control and transparency.
4
4
5
5
---
6
6
@@ -13,17 +13,19 @@ By default, apps make posts or comments using their associated app account. With
13
13
14
14
---
15
15
16
-
## Guidelines
16
+
Requirements
17
+
--------------
17
18
18
19
To ensure a positive user experience and compliance with Reddit policies:
19
20
20
-
-**Be transparent:** Inform users and show them the content that will be posted on their behalf.
21
-
-**No auto-creation:** Users must opt in to allow the app to post or comment on their behalf. This can only happen on an explicit action.
22
-
-**Provide user control:** If you are relying on persistent user opt-in, you must make it clear on how the user can opt-out.
23
-
21
+
-**Always ask permission:** Your app must always inform users before posting, commenting, or subscribing on their behalf. This can only happen on an explicit manual action, e.g. from a button.
22
+
-**No automated actions:** Users must explicitly opt-in to the app acting on their behalf. Do not mislead or surprise users.
23
+
-**Establish a reporting flow:** Ensure `userGeneratedContent` is correctly set for posts submitted on behalf of the user.
24
+
-**Do not gate functionality behind subscribing:** Users should not be made to subscribe to the current subreddit to access any part of your app.
25
+
-**Remember the human:** Follow Reddit's safety and compliance guidelines for user-generated content.
24
26
25
27
:::note
26
-
Apps using user actions must follow these guidelines to be approved.
28
+
Apps using user actions must follow these requirements to be approved.
27
29
:::
28
30
29
31
---
@@ -59,6 +61,7 @@ After enabling, you can call certain Reddit APIs on behalf of the user by passin
59
61
Currently, the following APIs support this option:
The subscribe API does not take a `runAs` parameter; it subscribes as the user by default (if specified in `devvit.json` and approved).
118
+
The [subscribeToCurrentSubreddit()](../../api/redditapi/RedditAPIClient/classes/RedditAPIClient.md#subscribetocurrentsubreddit) API does not take a `runAs` parameter; it subscribes as the user by default (if specified in `devvit.json` and approved).
res.status(500).json({ status: 'error', message: 'Failed to subscribe' });
129
+
}
130
+
});
121
131
```
122
132
123
-
:::note
124
-
There is no API to check if the user is already subscribed to the subreddit. You may want to store the subscription state in Redis to provide contextually aware UI.
125
-
:::
126
-
127
-
---
128
-
129
-
## Best practices
130
-
131
-
- Always inform users before posting or commenting on their behalf.
132
-
- Require explicit user opt-in for all user actions.
133
-
- Use `userGeneratedContent` for all user-submitted posts.
134
-
- Store user consent and subscription state if needed for your app's UX.
135
-
- Follow Reddit's safety and compliance guidelines for user-generated content.
133
+
For user privacy there is no API to check if the user is already subscribed to the current subreddit. You may want to store the subscription state in Redis to provide contextually aware UI.
0 commit comments