minimum hashtag streaming
This commit is contained in:
parent
fa440e8d9b
commit
f43bd64be2
|
@ -257,15 +257,15 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
||||||
var start = wss + '/api/v1/streaming/?stream=user&access_token=' + at
|
var start = wss + '/api/v1/streaming/?stream=user&access_token=' + at
|
||||||
} else if (type == 'pub') {
|
} else if (type == 'pub') {
|
||||||
var add = ''
|
var add = ''
|
||||||
if(remoteOnlyCk(tlid)){
|
if (remoteOnlyCk(tlid)) {
|
||||||
add = '&remote=true'
|
add = '&remote=true'
|
||||||
}
|
}
|
||||||
var start = wss + '/api/v1/streaming/?stream=public&access_token=' + at + add
|
var start = wss + '/api/v1/streaming/?stream=public&access_token=' + at + add
|
||||||
} else if (type == 'pub-media') {
|
} else if (type == 'pub-media') {
|
||||||
var add = ''
|
var add = ''
|
||||||
if(remoteOnlyCk(tlid)){
|
if (remoteOnlyCk(tlid)) {
|
||||||
add = '&remote=true'
|
add = '&remote=true'
|
||||||
}var start =
|
} var start =
|
||||||
wss + '/api/v1/streaming/?stream=public:media&access_token=' + at + add
|
wss + '/api/v1/streaming/?stream=public:media&access_token=' + at + add
|
||||||
} else if (type == 'local') {
|
} else if (type == 'local') {
|
||||||
var start =
|
var start =
|
||||||
|
@ -276,18 +276,19 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
||||||
'/api/v1/streaming/?stream=public:local:media&only_media=true&access_token=' +
|
'/api/v1/streaming/?stream=public:local:media&only_media=true&access_token=' +
|
||||||
at
|
at
|
||||||
} else if (type == 'tag') {
|
} else if (type == 'tag') {
|
||||||
if (type == 'tag') {
|
|
||||||
var tag = localStorage.getItem('tag-range')
|
var tag = localStorage.getItem('tag-range')
|
||||||
if (tag == 'local') {
|
if (tag == 'local') {
|
||||||
data = data + '&local=true'
|
data = data + '&local=true'
|
||||||
}
|
}
|
||||||
|
if(data.name) {
|
||||||
|
data = data.name
|
||||||
}
|
}
|
||||||
var start =
|
var start =
|
||||||
wss +
|
wss +
|
||||||
'/api/v1/streaming/?stream=hashtag&tag=' +
|
'/api/v1/streaming/?stream=hashtag&tag=' +
|
||||||
data +
|
data +
|
||||||
'&access_token=' +
|
'&access_token=' +
|
||||||
at
|
at + add
|
||||||
} else if (type == 'noauth') {
|
} else if (type == 'noauth') {
|
||||||
var start = 'wss://' + acct_id + '/api/v1/streaming/?stream=public:local'
|
var start = 'wss://' + acct_id + '/api/v1/streaming/?stream=public:local'
|
||||||
} else if (type == 'list') {
|
} else if (type == 'list') {
|
||||||
|
@ -866,13 +867,13 @@ function com(type, data, tlid) {
|
||||||
return 'public?local=true&only_media=true&'
|
return 'public?local=true&only_media=true&'
|
||||||
} else if (type == 'pub') {
|
} else if (type == 'pub') {
|
||||||
var add = ''
|
var add = ''
|
||||||
if(remoteOnlyCk(tlid)){
|
if (remoteOnlyCk(tlid)) {
|
||||||
add = 'remote=true&'
|
add = 'remote=true&'
|
||||||
}
|
}
|
||||||
return 'public?' + add
|
return 'public?' + add
|
||||||
} else if (type == 'pub-media') {
|
} else if (type == 'pub-media') {
|
||||||
var add = ''
|
var add = ''
|
||||||
if(remoteOnlyCk(tlid)){
|
if (remoteOnlyCk(tlid)) {
|
||||||
add = 'remote=true&'
|
add = 'remote=true&'
|
||||||
}
|
}
|
||||||
return 'public?only_media=true&' + add
|
return 'public?only_media=true&' + add
|
||||||
|
@ -1285,8 +1286,8 @@ function asReadEnd() {
|
||||||
onBeforeOpen: () => {
|
onBeforeOpen: () => {
|
||||||
Swal.showLoading()
|
Swal.showLoading()
|
||||||
},
|
},
|
||||||
onClose: () => {},
|
onClose: () => { },
|
||||||
}).then((result) => {})
|
}).then((result) => { })
|
||||||
} else {
|
} else {
|
||||||
postMessage(['asReadComp', ''], '*')
|
postMessage(['asReadComp', ''], '*')
|
||||||
}
|
}
|
||||||
|
@ -1426,7 +1427,7 @@ function announ(acct_id, tlid) {
|
||||||
}
|
}
|
||||||
//buildQuery
|
//buildQuery
|
||||||
function buildQuery(name, data) {
|
function buildQuery(name, data) {
|
||||||
if(!data || data == '') return ''
|
if (!data || data == '') return ''
|
||||||
var arr = data.split(',')
|
var arr = data.split(',')
|
||||||
var str = ''
|
var str = ''
|
||||||
for (var i = 0; i < arr.length; i++) {
|
for (var i = 0; i < arr.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user