From 7893fec24273571ba0d7f3cf9950b66641bf210c Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Sat, 2 Oct 2021 13:36:55 -0500 Subject: Refactor bridges --- twitter.js | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 twitter.js (limited to 'twitter.js') diff --git a/twitter.js b/twitter.js deleted file mode 100644 index 1f21047..0000000 --- a/twitter.js +++ /dev/null @@ -1,10 +0,0 @@ -function get_twitter(url) { - let pattern = /twitter.com\/(\w+).*/ - let match = url.match(pattern); - if (match) { - let twitter_handle = match[1] - let feed_url = `${base_url}/?action=display&bridge=Twitter&context=By+username&u=${twitter_handle}&format=` - return get_all_types(feed_url) - } - return [] -} -- cgit v1.2.3