revert: channel name without @
Will adjust on desktop side
This commit is contained in:
parent
80d67a240b
commit
ea3e1824e8
2 changed files with 4 additions and 4 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -898,7 +898,7 @@ const getSearchQueryString = (query, options = {}, includeUserOptions = false) =
|
||||||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
||||||
|
|
||||||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
||||||
const channelNameMinLength = 2;
|
const channelNameMinLength = 1;
|
||||||
const claimIdMaxLength = 40;
|
const claimIdMaxLength = 40;
|
||||||
|
|
||||||
// see https://spec.lbry.com/#urls
|
// see https://spec.lbry.com/#urls
|
||||||
|
@ -960,7 +960,7 @@ function parseURI(URL, requireProto = false) {
|
||||||
|
|
||||||
const includesChannel = streamNameOrChannelName.startsWith('@');
|
const includesChannel = streamNameOrChannelName.startsWith('@');
|
||||||
const isChannel = streamNameOrChannelName.startsWith('@') && !possibleStreamName;
|
const isChannel = streamNameOrChannelName.startsWith('@') && !possibleStreamName;
|
||||||
const channelName = includesChannel && streamNameOrChannelName;
|
const channelName = includesChannel && streamNameOrChannelName.slice(1);
|
||||||
|
|
||||||
if (includesChannel) {
|
if (includesChannel) {
|
||||||
if (!channelName) {
|
if (!channelName) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
const isProduction = process.env.NODE_ENV === 'production';
|
const isProduction = process.env.NODE_ENV === 'production';
|
||||||
const channelNameMinLength = 2;
|
const channelNameMinLength = 1;
|
||||||
const claimIdMaxLength = 40;
|
const claimIdMaxLength = 40;
|
||||||
|
|
||||||
// see https://spec.lbry.com/#urls
|
// see https://spec.lbry.com/#urls
|
||||||
|
@ -75,7 +75,7 @@ export function parseURI(URL: string, requireProto: boolean = false): LbryUrlObj
|
||||||
|
|
||||||
const includesChannel = streamNameOrChannelName.startsWith('@');
|
const includesChannel = streamNameOrChannelName.startsWith('@');
|
||||||
const isChannel = streamNameOrChannelName.startsWith('@') && !possibleStreamName;
|
const isChannel = streamNameOrChannelName.startsWith('@') && !possibleStreamName;
|
||||||
const channelName = includesChannel && streamNameOrChannelName;
|
const channelName = includesChannel && streamNameOrChannelName.slice(1);
|
||||||
|
|
||||||
if (includesChannel) {
|
if (includesChannel) {
|
||||||
if (!channelName) {
|
if (!channelName) {
|
||||||
|
|
Loading…
Reference in a new issue