Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion modules/tiktok.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,15 @@ export function capture(response, source_platform_url, source_url) {
} else {
return [];
}
}
}

// === auto-generated by 4cat map_item sync β€” BLOCK REPLACED AUTOMATICALLY ===
// (regenerated from datasources/tiktok/search_tiktok.py)
function normalize_url_encoding(url) {

return url.replace(/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode('0x' + p1));

}

export function map_item(post) {
// === end auto-generated ===