aboutsummaryrefslogtreecommitdiff
path: root/twitter.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-10-02 13:36:55 -0500
committerMark Powers <mark@marks.kitchen>2021-10-02 13:36:55 -0500
commit7893fec24273571ba0d7f3cf9950b66641bf210c (patch)
treec78df61028d814e2bbb437b90ac393989f0208ec /twitter.js
parenta1fbc4ac46e1c41d8c4522ae2b7af402ba0515f7 (diff)
Refactor bridges
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js10
1 files changed, 0 insertions, 10 deletions
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 []
-}