Added LinkTimeline and PreviewCard fetching by id

• Added:
- LinkTimeline and PreviewCard fetching by id
This commit is contained in:
mgabdev
2020-10-29 18:46:54 -05:00
parent f7dc62460c
commit f129d9c49b
15 changed files with 325 additions and 1 deletions

View File

@@ -623,6 +623,14 @@ const startWorker = (workerId) => {
streamFrom(`timeline:hashtag:${location.query.tag.toLowerCase()}`, req, streamToWs(req, ws), streamWsEnd(req, ws), true);
break;
case 'link':
if (!location.query.linkId || location.query.linkId.length === 0) {
ws.close();
return;
}
streamFrom(`timeline:link:${location.query.linkId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), true);
break;
case 'hashtag:local':
if (!location.query.tag || location.query.tag.length === 0) {
ws.close();