From 4d10c53216cd4cc814f4e9269eddf3061f6e2ff2 Mon Sep 17 00:00:00 2001 From: sau226 <32805612+sau226@users.noreply.github.com> Date: Sat, 11 Jun 2022 05:02:58 +1000 Subject: [PATCH] Further transition from HTTP to HTTPS (#14039) --- database_reports/count_users_who_own_specified_gear.js | 2 +- .../archive/2013/20131028_task_subdocs_tags_invites.js | 2 +- ...0111_announce_collection_quest_change_in_parties.js | 2 +- migrations/archive/s3-upload.js | 2 +- migrations/command-line/cancelSubscription.js | 2 +- test/helpers/api-integration/external-server.js | 2 +- website/client/src/components/appFooter.vue | 2 +- website/client/src/components/static/app.vue | 2 +- website/client/src/components/static/header.vue | 2 +- website/client/src/components/static/home.vue | 2 +- website/client/src/components/static/privacy.vue | 8 ++++---- website/client/src/components/static/terms.vue | 4 ++-- website/common/locales/README.md | 4 ++-- website/common/script/libs/statsComputed.js | 2 +- website/server/controllers/api-v3/user.js | 4 ++-- website/server/controllers/api-v3/webhook.js | 10 +++++----- website/server/libs/user/index.js | 2 +- website/server/models/user/hooks.js | 2 +- website/server/models/user/schema.js | 4 ++-- 19 files changed, 30 insertions(+), 30 deletions(-) diff --git a/database_reports/count_users_who_own_specified_gear.js b/database_reports/count_users_who_own_specified_gear.js index 4931f64eee..c22cb4dcaa 100644 --- a/database_reports/count_users_who_own_specified_gear.js +++ b/database_reports/count_users_who_own_specified_gear.js @@ -119,7 +119,7 @@ function path(obj, path, def) { * @param {String} path dot separated * @param {*} def default value ( if result undefined ) * @returns {*} - * http://stackoverflow.com/a/16190716 + * https://stackoverflow.com/a/16190716 * Usage: console.log(path(someObject, pathname)); */ for(var i = 0,path = path.split('.'),len = path.length; i < len; i++){ diff --git a/migrations/archive/2013/20131028_task_subdocs_tags_invites.js b/migrations/archive/2013/20131028_task_subdocs_tags_invites.js index 7e4c38b286..4069d381ed 100644 --- a/migrations/archive/2013/20131028_task_subdocs_tags_invites.js +++ b/migrations/archive/2013/20131028_task_subdocs_tags_invites.js @@ -2,7 +2,7 @@ // TODO it might be better we just find() and save() all user objects using mongoose, and rely on our defined pre('save') // and default values to "migrate" users. This way we can make sure those parts are working properly too -// @see http://stackoverflow.com/questions/14867697/mongoose-full-collection-scan +// @see https://stackoverflow.com/questions/14867697/mongoose-full-collection-scan // Also, what do we think of a Mongoose Migration module? something like https://github.com/madhums/mongoose-migrate // IMPORTANT NOTE: this migration was written when we were using version 3 of lodash. diff --git a/migrations/archive/2017/20170111_announce_collection_quest_change_in_parties.js b/migrations/archive/2017/20170111_announce_collection_quest_change_in_parties.js index 07abd4fa8a..6bd4ccd45e 100644 --- a/migrations/archive/2017/20170111_announce_collection_quest_change_in_parties.js +++ b/migrations/archive/2017/20170111_announce_collection_quest_change_in_parties.js @@ -19,7 +19,7 @@ const Timer = require('./utils/timer'); const connectToDb = require('./utils/connect').connectToDb; const closeDb = require('./utils/connect').closeDb; -const message = '`This party\'s collection quest has been made easier! For details, refer to http://habitica.fandom.com/wiki/User_blog:LadyAlys/Collection_Quests_are_Now_Easier`'; +const message = '`This party\'s collection quest has been made easier! For details, refer to https://habitica.fandom.com/wiki/User_blog:LadyAlys/Collection_Quests_are_Now_Easier`'; const timer = new Timer(); diff --git a/migrations/archive/s3-upload.js b/migrations/archive/s3-upload.js index 32ae1d71cb..1a11fbe6b9 100644 --- a/migrations/archive/s3-upload.js +++ b/migrations/archive/s3-upload.js @@ -16,7 +16,7 @@ AWS.config.update({ const BUCKET_NAME = config.S3.bucket; const s3 = new AWS.S3(); -// Adapted from http://stackoverflow.com/a/22210077/2601552 +// Adapted from https://stackoverflow.com/a/22210077/2601552 function uploadFile (buffer, fileName) { return new Promise((resolve, reject) => { s3.putObject({ diff --git a/migrations/command-line/cancelSubscription.js b/migrations/command-line/cancelSubscription.js index a59a0a4c7f..ee51f908ac 100644 --- a/migrations/command-line/cancelSubscription.js +++ b/migrations/command-line/cancelSubscription.js @@ -2,7 +2,7 @@ // For some reason people often to contact me to cancel their sub, // rather than do it online. Even when I point them to -// the FAQ (http://goo.gl/1uoPGQ) they insist... +// the FAQ (https://habitica.fandom.com/wiki/FAQ) they insist... db.users.update( { _id: '' }, diff --git a/test/helpers/api-integration/external-server.js b/test/helpers/api-integration/external-server.js index 0c52eedd4f..5b199d058d 100644 --- a/test/helpers/api-integration/external-server.js +++ b/test/helpers/api-integration/external-server.js @@ -28,7 +28,7 @@ app.post('/webhooks/:id', (req, res) => { }); // Helps close down server from within mocha test -// See http://stackoverflow.com/a/37054753/2601552 +// See https://stackoverflow.com/a/37054753/2601552 const sockets = {}; server.on('connection', socket => { const id = uuid(); diff --git a/website/client/src/components/appFooter.vue b/website/client/src/components/appFooter.vue index 8ca55b4063..c3e0b81ac0 100644 --- a/website/client/src/components/appFooter.vue +++ b/website/client/src/components/appFooter.vue @@ -34,7 +34,7 @@
WITHIN THIRTY (30) DAYS OF YOUR PREMIUM PAYMENT DATE AS SHOWN ON YOUR PAYMENT BILL, YOU CAN REQUEST A FULL REFUND BY CONTACTING US AT ADMIN@HABITICA.COM. AFTER THIRTY (30) DAYS OF YOUR PREMIUM PAYMENT DATE, ANY PAYMENT REFUND IS SOLELY SUBJECT TO OUR DISCRETION. THE REFUND SHALL BE YOUR SOLE AND EXCLUSIVE REMEDY.
FOR ANY CUSTOMER WHO PURCHASED PREMIUM IN APPLE INC.'s APP STORE ("APP STORE"), PLEASE CONTACT APPLE INC.'s SUPPORT TEAM: http://reportaproblem.apple.com. APPLE'S APP STORE DOES NOT ALLOW DEVELOPERS TO ISSUE REFUND FOR APP STORE PURCHASES MADE BY CUSTOMERS. + >https://reportaproblem.apple.com. APPLE'S APP STORE DOES NOT ALLOW DEVELOPERS TO ISSUE REFUND FOR APP STORE PURCHASES MADE BY CUSTOMERS.
THE SERVICE AND ANY CONTENT MADE AVAILABLE BY HABITRPG VIA THE SERVICE IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT ANY WARRANTIES OF ANY KIND, INCLUDING, WITHOUT LIMITATION, THAT THE SERVICE OR CONTENT WILL OPERATE ERROR-FREE OR THAT THE SERVICE OR CONTENT OR ITS SERVERS ARE FREE OF COMPUTER VIRUSES OR SIMILAR CONTAMINATION OR DESTRUCTIVE FEATURES.
diff --git a/website/common/locales/README.md b/website/common/locales/README.md index 3f25e8a20a..c0e03a1e66 100644 --- a/website/common/locales/README.md +++ b/website/common/locales/README.md @@ -1,4 +1,4 @@ -HabitRPG's translations are managed at http://translate.habitica.com/ +HabitRPG's translations are managed at https://translate.habitica.com/ The files in this folder are automatically pulled from there, with exception of the original American-English strings which are managed @@ -10,5 +10,5 @@ request that your changes be translated; changes are automatically copied to the translation website on a regular basis. If you want to help with translations, please first read [Guidance for -Linguists](http://habitica.fandom.com/wiki/Guidance_for_Linguists) and +Linguists](https://habitica.fandom.com/wiki/Guidance_for_Linguists) and note especially its information about the [Translations Trello card](https://trello.com/c/SvTsLdRF/12-translations). diff --git a/website/common/script/libs/statsComputed.js b/website/common/script/libs/statsComputed.js index 150200f4da..5345f43c16 100644 --- a/website/common/script/libs/statsComputed.js +++ b/website/common/script/libs/statsComputed.js @@ -11,7 +11,7 @@ function equipmentStatBonusComputed (stat, user) { // toObject is required here due to lodash values not working well with mongoose doc objects. // if toObject doesn't exist, we can assume the object is already plain JSON - // see http://stackoverflow.com/questions/25767334/underscore-js-keys-and-omit-not-working-as-expected + // see https://stackoverflow.com/questions/25767334/underscore-js-keys-and-omit-not-working-as-expected const { equipped } = user.items.gear; const equippedKeys = values(!equipped.toObject ? equipped : equipped.toObject()); diff --git a/website/server/controllers/api-v3/user.js b/website/server/controllers/api-v3/user.js index 0aeb1bf4dc..bfd0f68c52 100644 --- a/website/server/controllers/api-v3/user.js +++ b/website/server/controllers/api-v3/user.js @@ -1318,8 +1318,8 @@ api.userSell = { * @apiParam (Query) {String} path Full path to unlock. See "content" API call for list of items. * * @apiParamExample {curl} Example call: - * curl -X POST http://habitica.com/api/v3/user/unlock?path=background.midnight_clouds - * curl -X POST http://habitica.com/api/v3/user/unlock?path=hair.color.midnight + * curl -X POST https://habitica.com/api/v3/user/unlock?path=background.midnight_clouds + * curl -X POST https://habitica.com/api/v3/user/unlock?path=hair.color.midnight * * @apiSuccess {Object} data.purchased * @apiSuccess {Object} data.items diff --git a/website/server/controllers/api-v3/webhook.js b/website/server/controllers/api-v3/webhook.js index 00b5bf54cb..c8f08d3059 100644 --- a/website/server/controllers/api-v3/webhook.js +++ b/website/server/controllers/api-v3/webhook.js @@ -43,7 +43,7 @@ const api = {}; * @apiParamExample {json} Task Activity Example * { * "enabled": true, // default - * "url": "http://some-webhook-url.com", + * "url": "https://some-webhook-url.com", * "label": "My Webhook", * "type": "taskActivity", // default * "options": { @@ -56,7 +56,7 @@ const api = {}; * @apiParamExample {json} Group Chat Received Example * { * "enabled": true, - * "url": "http://some-webhook-url.com", + * "url": "https://some-webhook-url.com", * "label": "My Chat Webhook", * "type": "groupChatReceived", * "options": { @@ -66,7 +66,7 @@ const api = {}; * @apiParamExample {json} User Activity Example * { * "enabled": true, - * "url": "http://some-webhook-url.com", + * "url": "https://some-webhook-url.com", * "label": "My Activity Webhook", * "type": "userActivity", * "options": { // set at least one to true @@ -78,7 +78,7 @@ const api = {}; * @apiParamExample {json} Quest Activity Example * { * "enabled": true, - * "url": "http://some-webhook-url.com", + * "url": "https://some-webhook-url.com", * "label": "My Quest Webhook", * "type": "questActivity", * "options": { // set at least one to true @@ -89,7 +89,7 @@ const api = {}; * } * @apiParamExample {json} Minimal Example * { - * "url": "http://some-webhook-url.com" + * "url": "https://some-webhook-url.com" * } * * @apiSuccess (201) {Object} data The created webhook diff --git a/website/server/libs/user/index.js b/website/server/libs/user/index.js index 6ff39ef1b9..f2aa73df69 100644 --- a/website/server/libs/user/index.js +++ b/website/server/libs/user/index.js @@ -58,7 +58,7 @@ const updatablePaths = [ ]; // This tells us for which paths users can call `PUT /user`. -// The trick here is to only accept leaf paths, not root/intermediate paths (see http://goo.gl/OEzkAs) +// The trick here is to only accept leaf paths, not root/intermediate paths (see https://goo.gl/OEzkAs) const acceptablePUTPaths = _.reduce(UserSchema.paths, (accumulator, val, leaf) => { const found = _.find(updatablePaths, rootPath => leaf.indexOf(rootPath) === 0); diff --git a/website/server/models/user/hooks.js b/website/server/models/user/hooks.js index 93a4df68b9..58340c73cd 100644 --- a/website/server/models/user/hooks.js +++ b/website/server/models/user/hooks.js @@ -246,7 +246,7 @@ schema.pre('save', true, function preSaveUser (next, done) { // use the default values defined in the user schema and not the real ones. // // To check if a field was selected Document.isDirectSelected('field') can be used. - // more info on its usage can be found at http://mongoosejs.com/docs/api.html#document_Document-isDirectSelected + // more info on its usage can be found at https://mongoosejs.com/docs/api.html#document_Document-isDirectSelected // do not calculate achievements if items or achievements are not selected if (this.isDirectSelected('items') && this.isDirectSelected('achievements')) { diff --git a/website/server/models/user/schema.js b/website/server/models/user/schema.js index 9e9fd4fd5d..868c158a6c 100644 --- a/website/server/models/user/schema.js +++ b/website/server/models/user/schema.js @@ -68,7 +68,7 @@ export default new Schema({ }, // We want to know *every* time an object updates. // Mongoose uses __v to designate when an object contains arrays which - // have been updated (http://goo.gl/gQLz41), but we want *every* update + // have been updated, but we want *every* update _v: { $type: Number, default: 0 }, migration: String, achievements: { @@ -441,7 +441,7 @@ export default new Schema({ // Using an array without validation because otherwise mongoose // treat this as a subdocument and applies _id by default // Schema is (id, name, inviter, publicGuild) - // TODO one way to fix is http://mongoosejs.com/docs/guide.html#_id + // TODO one way to fix is https://mongoosejs.com/docs/guide.html#_id guilds: { $type: Array, default: () => [] }, // Using a Mixed type because otherwise user.invitations.party = {} // to reset invitation, causes validation to fail TODO