Commit Graph

157 Commits

Author SHA1 Message Date
Anshuman Kumar 0969d694db Merge branch 'main' into main 2023-01-02 11:46:26 +00:00
teddit 079ea36d24 update _options cookies, add option for opening gated subreddits, fixes #374 2023-01-01 21:55:03 +01:00
Anshuman Kumar ed0c0c7d28 Handle all variation of user preference for regexes 2022-12-30 17:43:43 +05:30
Anshuman Kumar f7f2d0beec Update regex to find a match and replace if present 2022-12-30 09:42:08 +05:30
Anshuman Kumar c71bf6ee48 Add logic to parse and remove any instances of https://twitter.com by replacing with user's preference
The issue was happening since the original regex is checking for href tags only, so I tried a simpler approach of searching for https://twitter.com instead whenever the regex does not match the input string

Add Nodemon package to dev dependencies for local debugging
2022-12-29 20:21:09 +05:30
CosmosDev 2c5c9d7cde Add support for subreddits explore API 2022-12-15 22:03:49 +01:00
CosmosDev 54c658ff9b Clean code 2022-12-15 21:38:21 +01:00
CosmosDev 3a51e9d165 Refactor handleSubreddit.js 2022-12-15 20:25:04 +01:00
CosmosDev baddb1aec2 Add suport for subreddit search API 2022-12-15 20:21:12 +01:00
CosmosDev eec2a24eb3 Add support for subreddit about API 2022-12-15 19:10:32 +01:00
CosmosDev 0852396b6d Add support for post API 2022-12-14 22:08:12 +01:00
Jean-Luc Tibaux 50c369833b improved imgur regex pattern as requested in #365 2022-11-26 20:22:01 +00:00
Jean-Luc Tibaux 45dc798eef implement imgur replacement (#341) 2022-11-12 13:47:08 +00:00
alan bc3af7b609 Add Quetre option 2022-10-15 06:23:48 +02:00
teddit 52bc1f4945 rewrite urls for embedded Reddit media in post comments (#345) 2022-09-06 20:08:19 +02:00
Abdelkarim Djelalda f7082acc41 change deleted user's comment to #cc6a6a 2022-07-07 14:35:31 +01:00
Abdelkarim Djelalda f33d78f6a4 Integrate Reveddit with deleted comments 2022-07-06 01:44:50 +01:00
teddit 07050c9cf6 properly fix 'continue this thread' links - no need to req.url checking (ref #82) 2022-06-27 21:48:40 +02:00
teddit 02fd92ce2c fix 'continue this thread' links (fixes #82) 2022-06-27 03:23:29 +02:00
redmt fc56f0a833 Update processJsonPost.js to include gallery image captions 2022-06-11 20:55:14 +02:00
redmt 69a9b0e080 Update inc/initRedditApi.js to pass instance_config to template 2022-06-11 19:40:27 +02:00
redmt 27ade36805 Rename index.pug to frontpage.pug 2022-06-10 20:05:36 +02:00
redmt 6328e41bcf Update processJsonPost.js to remove newlines from selftext_preview 2022-06-10 15:56:54 +02:00
redmt 319fa35d5f Update processJsonPost.js to store a preview selftext 2022-06-10 15:42:37 +02:00
teddit 3612345fab proxy i.redd.it and v.redd.it media links in comments (#307) 2022-04-11 21:30:41 +02:00
analogue 4bb02eaf03 Use proper https_enabled flag 2022-03-29 20:22:30 +00:00
analogue ee7508b24a When teddifying URLs to se for links, images, or video, use correct protocol scheme 2022-03-13 22:13:21 +00:00
Austin Huang b5878ea031
Improve domain replacement regex
1. Let regex only match href, close #267
2. Enforce HTTPS if the instance is on HTTPS
3. Prevent redirecting domains such as blog.twitter.com and help.instagram.com
2022-01-26 12:41:18 -05:00
teddit 15256b1cd8 add a config to force https for api permalinks (#285) 2022-01-18 19:47:16 +01:00
gawii0 2e030e2c4b Fix: API light mode subreddit 2021-12-28 22:58:34 +01:00
gawii0 aa3a854b6e API light mode subreddit 2021-12-24 15:37:46 +01:00
3nprob 8bf7d4f792 Support implicit video media 2021-11-23 05:28:27 +09:00
3nprob 56a2f6b266 Rewrite i.imgur.com gifv to mp4
* Configurable env var VALID_MEDIA_DOMAINS
2021-11-23 05:28:22 +09:00
teddit c34c32cc35 check that reddit_video_preview.fallback_url exists (fixes #255) 2021-10-30 19:26:54 +02:00
teddit a9f13741bb check that post media_metadata exists (fixes #250) 2021-10-08 06:46:37 +02:00
teddit c4d167c787 validate json before processing it (fixes #247) 2021-10-06 17:38:08 +02:00
teddit 9e515c4985 fix setting the duration (fixes #240) 2021-09-12 18:03:00 +02:00
teddit 873e56a23b use async for processMoreComments 2021-09-09 19:19:52 +02:00
teddit 813fb3566c convert processMoreComments to use async function 2021-09-09 18:19:27 +02:00
json e1df2ea8ae convert processJsonSubredditsExplore to async function 2021-09-08 13:46:41 +01:00
json 6ff892767c convert processJsonSubreddit to async function 2021-09-08 13:46:41 +01:00
json 153a50e60a convert processSearchResults to async function 2021-09-08 13:46:41 +01:00
json 711f2450c7 change callback to await in processSubredditAbout 2021-09-08 13:46:41 +01:00
json aae3e00ab1 convert processSubredditAbout to async function 2021-09-08 13:46:28 +01:00
json 1c7a3a8f5a separate redis from app.js 2021-09-08 13:40:18 +01:00
json d95642cf80 convert processJsonPost to async functions 2021-09-08 13:40:18 +01:00
json f3cc837a01 convert processJsonUser to async function 2021-09-08 13:40:18 +01:00
teddit 2cb5a5e45a pass pref_quarantine_optin-cookie to get quarantined subreddits (fixes #224) 2021-08-18 22:07:29 +02:00
teddit 95f7ebb4be comment out the moderators fetching 2021-06-18 22:44:31 +02:00
StevenNMeza a8974f709d Use a standalone function 2021-05-26 18:21:05 +02:00