mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added shortParentCid to Thread
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
function findParentShortCid(parentCid, selectedFeed) {
|
||||
for (const thread of selectedFeed) {
|
||||
function findParentShortCid(parentCid, input) {
|
||||
const feed = Array.isArray(input) ? input : [input];
|
||||
|
||||
for (const thread of feed) {
|
||||
if (thread.cid === parentCid) {
|
||||
return thread.shortCid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user