瀏覽代碼

fix: Various minor christmas fixes

Owen Diffey 2 年之前
父節點
當前提交
28db568115
共有 3 個文件被更改,包括 6 次插入16 次删除
  1. 1 1
      .wiki/Configuration.md
  2. 3 13
      backend/logic/actions/playlists.js
  3. 2 2
      frontend/src/pages/Home.vue

+ 1 - 1
.wiki/Configuration.md

@@ -41,7 +41,7 @@ Location: `backend/config/default.json`
 | `cookie.secure` | Should be `true` for SSL connections, and `false` for normal http connections. |
 | `cookie.SIDname` | Name of the cookie stored for sessions. |
 | `blacklistedCommunityStationNames ` | Array of blacklisted community station names. |
-| `featuredPlaylists ` | Array of featured playlist id's. |
+| `featuredPlaylists ` | Array of featured playlist id's. Playlist privacy must be public. |
 | `skipConfigVersionCheck` | Skips checking if the config version is outdated or not. Should almost always be set to false. |
 | `skipDbDocumentsVersionCheck` | Skips checking if there are any DB documents outdated or not. Should almost always be set to false. |
 | `debug.stationIssue` | If set to `true` it will enable the `/debug_station` API endpoint on the backend, which provides information useful to debugging stations not skipping, as well as capure all jobs specified in `debug.captureJobs`. 

+ 3 - 13
backend/logic/actions/playlists.js

@@ -537,9 +537,7 @@ export default {
 	 * @param {object} session - the session object automatically added by the websocket
 	 * @param {Function} cb - gets called with the result
 	 */
-	 indexFeaturedPlaylists: isLoginRequired(async function indexMyPlaylists(session, cb) {
-		const playlistModel = await DBModule.runJob("GET_MODEL", { modelName: "playlist" }, this);
-
+	indexFeaturedPlaylists: isLoginRequired(async function indexMyPlaylists(session, cb) {
 		async.waterfall(
 			[
 				next => {
@@ -570,18 +568,10 @@ export default {
 			async (err, playlists) => {
 				if (err && err !== true) {
 					err = await UtilsModule.runJob("GET_ERROR", { error: err }, this);
-					this.log(
-						"ERROR",
-						"PLAYLIST_INDEX_FEATURED",
-						`Indexing featured playlists failed. "${err}"`
-					);
+					this.log("ERROR", "PLAYLIST_INDEX_FEATURED", `Indexing featured playlists failed. "${err}"`);
 					return cb({ status: "error", message: err });
 				}
-				this.log(
-					"SUCCESS",
-					"PLAYLIST_INDEX_FEATURED",
-					`Successfully indexed featured playlists.`
-				);
+				this.log("SUCCESS", "PLAYLIST_INDEX_FEATURED", `Successfully indexed featured playlists.`);
 				return cb({
 					status: "success",
 					data: { playlists }

+ 2 - 2
frontend/src/pages/Home.vue

@@ -788,10 +788,10 @@ export default {
 		);
 	}
 	.christmas-lights {
-		top: 35vh;
+		top: 35vh !important;
 
 		&.loggedIn {
-			top: 20vh;
+			top: 20vh !important;
 		}
 	}
 	.header {