mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
FEATURE: Include a user's pending posts in the topic view
Also includes a refactor to TopicView's serializer which was not building our attributes using serializers properly.
This commit is contained in:
@ -430,7 +430,14 @@ export default function() {
|
||||
}
|
||||
|
||||
if (data.raw === "enqueue this content please") {
|
||||
return response(200, { success: true, action: "enqueued" });
|
||||
return response(200, {
|
||||
success: true,
|
||||
action: "enqueued",
|
||||
pending_post: {
|
||||
id: 1234,
|
||||
raw: data.raw
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return response(200, {
|
||||
|
Reference in New Issue
Block a user