mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
Fix move log
This commit is contained in:
parent
4f86610773
commit
db0fee5692
@ -1437,9 +1437,10 @@ Channel.prototype.move = function(data, user) {
|
|||||||
|
|
||||||
var fromit = chan.playlist.items.find(data.from);
|
var fromit = chan.playlist.items.find(data.from);
|
||||||
var afterit = chan.playlist.items.find(data.after);
|
var afterit = chan.playlist.items.find(data.after);
|
||||||
|
var aftertitle = afterit && afterit.media ? afterit.media.title : "";
|
||||||
if(fromit) {
|
if(fromit) {
|
||||||
chan.logger.log("### " + user.name + " moved " + fromit.media.title +
|
chan.logger.log("### " + user.name + " moved " + fromit.media.title
|
||||||
+ afterit ? " after " + afterit.media.title : "");
|
+ (aftertitle ? " after " + aftertitle : ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
chan.sendAll("moveVideo", {
|
chan.sendAll("moveVideo", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user