Currently when a user creates posts that are moderated (for whatever reason), a popup is displayed saying the post needs approval and the total number of the user’s pending posts. But then this piece of information is kind of lost and there is nowhere for the user to know what are their pending posts or how many there are. This patch solves this issue by adding a new “Pending” section to the user’s activity page when there are some pending posts to display. When there are none, then the “Pending” section isn’t displayed at all.
33 lines
968 B
JavaScript
33 lines
968 B
JavaScript
export default {
|
|
"/posts/eviltrout/pending.json": {
|
|
pending_posts: [
|
|
{
|
|
id: 2,
|
|
avatar_template: "/user_avatar/localhost/eviltrout/{size}/5275.png",
|
|
category_id: 2,
|
|
created_at: "2021-10-19T10:18:13.238Z",
|
|
created_by_id: 19,
|
|
name: "Robin Ward",
|
|
raw_text: "**bold text**",
|
|
title: "Lorem ipsum dolor sit amet",
|
|
topic_id: 130,
|
|
topic_url: "/t/lorem-ipsum-dolor-sit-amet/130",
|
|
username: "eviltrout"
|
|
},
|
|
{
|
|
id: 1,
|
|
avatar_template: "/user_avatar/localhost/eviltrout/{size}/5275.png",
|
|
category_id: 2,
|
|
created_at: "2021-10-19T09:38:35.110Z",
|
|
created_by_id: 19,
|
|
name: "Robin Ward",
|
|
raw_text: "This will be moderated in theory :thinking:",
|
|
title: "Lorem ipsum dolor sit amet",
|
|
topic_id: 130,
|
|
topic_url: "/t/lorem-ipsum-dolor-sit-amet/130",
|
|
username: "eviltrout"
|
|
},
|
|
]
|
|
}
|
|
};
|