浏览代码

Fixed more issues.

KrisVos130 9 年之前
父节点
当前提交
f64c7d7878
共有 3 个文件被更改,包括 3 次插入4 次删除
  1. 1 1
      app/client/scripts/helpers.js
  2. 1 1
      app/client/templates/home.html
  3. 1 2
      app/server/server.js

+ 1 - 1
app/client/scripts/helpers.js

@@ -575,7 +575,7 @@ Template.privateRoom.helpers({
     },
     },
     allowed: function () {
     allowed: function () {
         var parts = location.href.split('/');
         var parts = location.href.split('/');
-        var id = parts.pop().toLowerCase();
+        var id = parts.pop().toLowerCase();deploy
         var arr = [];
         var arr = [];
         PrivateRooms.findOne({name: id}).allowed.forEach(function(allowed) {
         PrivateRooms.findOne({name: id}).allowed.forEach(function(allowed) {
             arr.push({name: Meteor.users.findOne(allowed).profile.username, id: allowed});
             arr.push({name: Meteor.users.findOne(allowed).profile.username, id: allowed});

+ 1 - 1
app/client/templates/home.html

@@ -91,7 +91,7 @@
                                     </a>
                                     </a>
                                 </div>
                                 </div>
                                 <div class="card-content">
                                 <div class="card-content">
-                                    <span class="card-title grey-text text-darken-4">{{display}}</span><div><span class="user-num">{{userPrivateNum}}</span> <i class="material-icons">perm_identity</i></div>
+                                    <span class="card-title grey-text text-darken-4">{{displayName}}</span><div><span class="user-num">{{userPrivateNum}}</span> <i class="material-icons">perm_identity</i></div>
                                     <p>{{roomDesc}}</p>
                                     <p>{{roomDesc}}</p>
                                 </div>
                                 </div>
                                 <div class="card-action">
                                 <div class="card-action">

+ 1 - 2
app/server/server.js

@@ -1,5 +1,3 @@
-/* Yolo Swag 420 */
-
 Meteor.startup(function () {
 Meteor.startup(function () {
     reCAPTCHA.config({
     reCAPTCHA.config({
         privatekey: '6LcVxg0TAAAAAI2fgIEEWHFxwNXeVIs8mzq5cfRM'
         privatekey: '6LcVxg0TAAAAAI2fgIEEWHFxwNXeVIs8mzq5cfRM'
@@ -1618,6 +1616,7 @@ Meteor.methods({
     },
     },
     createPrivatePlaylist: function (name, display) {
     createPrivatePlaylist: function (name, display) {
         if (Meteor.userId() && !isBanned()) {
         if (Meteor.userId() && !isBanned()) {
+			name = name.toLowerCase();
             if (PrivatePlaylists.findOne({name: name, owner: Meteor.userId()}) === undefined) {
             if (PrivatePlaylists.findOne({name: name, owner: Meteor.userId()}) === undefined) {
                 PrivatePlaylists.insert({name: name, displayName: display, songs: [{id: "60ItHLz5WEA", duration: 213, title: "Alan Walker - Faded"}], owner: Meteor.userId()});
                 PrivatePlaylists.insert({name: name, displayName: display, songs: [{id: "60ItHLz5WEA", duration: 213, title: "Alan Walker - Faded"}], owner: Meteor.userId()});
             }
             }