diff --git a/js/version-specific.js b/js/version-specific.js index c5d5c5f..f90c61c 100644 --- a/js/version-specific.js +++ b/js/version-specific.js @@ -123,8 +123,8 @@ function saveBroadcasts(broadcasts, callback = undefined) { * @param {Date|number} timestamp Timestamp to show as the post time in the home feed * @returns {Broadcast} */ -function createBroadcast(id, title, message, timestamp = Date.now()) { - return { id: String(id), title, message, timestamp: +timestamp }; +function createBroadcast(id, title, message, timestamp = Date.now(), expires = undefined) { + return { id: String(id), title, message, timestamp: +timestamp, expires: expires !== undefined ? +expires : undefined }; } /** @@ -298,6 +298,36 @@ let migrationsTo = { } }, 50); }, + "7.8.6": function (currentVersion, previousVersion) { + saveBroadcasts([ + createBroadcast( + 670, + "Schoology Plus Fall 2023 Survey", + ` +
Occasionally we run this survey to understand how best to improve Schoology Plus for our users.
+Spend 10 minutes completing this year's survey and you'll be entered into a giveaway for one of + 20 Amazon gift cards totaling $150 + : ten $10 cards and ten $5 cards, so your chance of winning is higher than ever before! +
+Thank you for helping improve Schoology Plus! Your feedback is incredibly valuable to us and will likely impact to what extent Schoology Plus is improved in the future.
+Click here to visit survey.schoologypl.us and take the survey now!
+