Skip to content

Commit bb82252

Browse files
committed
Expose additional activity data for preview
1 parent f13d552 commit bb82252

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/activity/activity.controller.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ function clone({ activity, body }, res) {
6565
function getPreviewUrl({ course, activity }, res) {
6666
return fetchActivityContent(course, activity, true)
6767
.then(content => {
68-
const body = { uid: activity.uid, ...content };
68+
const body = {
69+
...pick(activity, ['id', 'uid', 'type']),
70+
meta: activity.data,
71+
...content
72+
};
6973
return request.post(previewUrl, body);
7074
})
7175
.then(({ data: { url } }) => {

0 commit comments

Comments
 (0)