support old hashes in getUserChannelList
This commit is contained in:
parent
7d5ff27900
commit
d422c7e165
@ -1017,6 +1017,14 @@ define([
|
|||||||
|
|
||||||
parsed = common.parseHash(parsed.hash);
|
parsed = common.parseHash(parsed.hash);
|
||||||
|
|
||||||
|
if (parsed.version === 0) {
|
||||||
|
return channel;
|
||||||
|
} else if (parsed.version !== 1) {
|
||||||
|
console.error("parsed href had no version");
|
||||||
|
console.error(parsed);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var channel = parsed.channel;
|
var channel = parsed.channel;
|
||||||
if (!channel) { return; }
|
if (!channel) { return; }
|
||||||
|
|
||||||
@ -1024,7 +1032,7 @@ define([
|
|||||||
return hex;
|
return hex;
|
||||||
}).filter(function (x) { return x; });
|
}).filter(function (x) { return x; });
|
||||||
|
|
||||||
list.push(userChannel);
|
list.push(common.base64ToHex(userChannel));
|
||||||
list.sort();
|
list.sort();
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user