We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d91f16 commit 2afc727Copy full SHA for 2afc727
routes/api/activity.js
@@ -202,7 +202,12 @@ module.exports = function (app) {
202
* @todo Think of how to handle anonymous ideas.
203
* @todo Think of how to move this to the SQL query.
204
*/
205
- const activities = allActivities.filter((it) => it.data.actor.id !== null)
+ let activities = allActivities.filter((it) => it.data.actor.id !== null)
206
+
207
+ /**
208
+ * Filter out activities with draft status.
209
+ */
210
+ activities = activities.filter((it) => it.data.object.status !== "draft")
211
212
const returnList = [];
213
activities.forEach(function (activity) {
0 commit comments