Commit Graph

743 Commits

Author SHA1 Message Date
teddit 265c33fcd2 use 24 hours interval if the interval value (config.cache_control_interval) is set to over 1000. fixes cache control for older config.cache_control_interval values 2022-01-29 23:53:51 +01:00
teddit 01c41c7adf link instances.json to ./static/instances.json (to make it accessible via instances) 2022-01-29 15:35:04 +01:00
teddit 397a02c821 add instances file, instances.json 2022-01-29 15:25:08 +01:00
teddit 3ad64d5c87 use apt-get instead of apt 2022-01-29 14:53:45 +01:00
teddit d315051a7b fix mime type in POST import_prefs 2022-01-29 14:49:47 +01:00
teddit d947182058 Merge pull request 'Use slim node image instead of alpine' (#288) from austinhuang.me/teddit:austinhuang.me-patch-1 into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/288
2022-01-29 14:40:41 +01:00
teddit e87b811883 Merge pull request 'Support redd.it short url redirections' (#290) from austinhuang.me/teddit:austinhuang.me-patch-3 into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/290
2022-01-29 14:40:08 +01:00
teddit 446f388be2 Merge pull request 'Improve domain replacement regex' (#289) from austinhuang.me/teddit:austinhuang.me-patch-2 into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/289
2022-01-29 14:38:44 +01:00
teddit 791a80b337 fix invalid mime type (fixes #291) 2022-01-29 14:35:03 +01:00
teddit 301774ce8d update node-fetch@2.6.7 - fixes CVE-2022-0235 (teddit is not affected) 2022-01-29 14:27:14 +01:00
Austin Huang 08437d8663
Support redd.it short url redirections
Close #273
2022-01-26 13:56:40 -05: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
Austin Huang c97fb5a517
Use slim node image instead of alpine
Signed-off-by: Austin Huang <im@austinhuang.me>
2022-01-26 11:49:47 -05:00
teddit 1efe34c0ad add description for config.api_force_https 2022-01-18 19:54:26 +01:00
teddit 7a9603f850 add teddit.bus-hit.me instance (#285) 2022-01-18 19:52:08 +01:00
teddit 15256b1cd8 add a config to force https for api permalinks (#285) 2022-01-18 19:47:16 +01:00
teddit bc274e9660 Merge pull request 'change markdown code blocks in README.md to improve syntax highlighting' (#283) from eUgEntOptIc44/teddit:eugentoptic44-improve-syntax-highlighting into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/283
2022-01-13 17:30:14 +01:00
teddit ab44566561 Merge pull request 'add dependabot config for npm dependencies' (#282) from eUgEntOptIc44/teddit:eugentoptic44-npm-dependabot-scanning into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/282
2022-01-13 17:29:53 +01:00
teddit a411df0503 Merge pull request 'Fix forced configuration options' (#276) from nfusionz/teddit:main into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/276
2022-01-13 17:22:12 +01:00
Jean-Luc Tibaux 849475925d changed markdown code blocks to improve syntax highlighting
changed from e.g. console -> docker to improve general readability
2022-01-12 09:25:22 +01:00
Jean-Luc Tibaux dd45b2633a add dependabot config for npm dependencies
for dependabot config docs -> please also see: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#package-ecosystem
2022-01-10 18:03:31 +01:00
nfusionz fcc0fce890 Some config settings set to default to true
- If the environmental variable isn't set, default to true.
2021-12-29 22:09:43 -05:00
nfusionz c1faeeb05c Fix forced configuration options 2021-12-29 21:44:57 -05:00
teddit 734ac6a817 Merge pull request 'Fix: API light mode subreddit' (#279) from gawii0/teddit:main into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/279
2021-12-29 00:08:32 +01:00
gawii0 2e030e2c4b Fix: API light mode subreddit 2021-12-28 22:58:34 +01:00
teddit 010c934d60 update dependencies 2021-12-27 18:51:13 +01:00
teddit ab076d020f Merge pull request 'API light mode subreddit' (#277) from gawii0/teddit:main into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/277
2021-12-27 18:25:08 +01:00
gawii0 0d2de61444 Update handleTedditApiSubreddit 'routes/user.js' 2021-12-27 18:19:05 +01:00
gawii0 e870b9ea50 Update handleTedditApiSubreddit 'routes/subreddit.js' 2021-12-27 18:18:21 +01:00
gawii0 e0bf08132d Update handleTedditApiSubreddit 'routes/home.js' 2021-12-27 18:17:15 +01:00
gawii0 aa3a854b6e API light mode subreddit 2021-12-24 15:37:46 +01:00
teddit 8315ad3f16 make the preference show_upvoted_percentage configurable via config.js #274 2021-12-21 22:19:38 +01:00
teddit 4bf092e481 Merge pull request 'Add an "Operated by" note to the PussTheCat.org instance' (#272) from TheFrenchGhosty/teddit:operated-by-pussthecat-org into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/272
2021-12-18 21:46:07 +01:00
TheFrenchGhosty cadf67f488 Add an "Operated by" note to the PussTheCat.org instance 2021-12-18 21:28:56 +01:00
teddit 992429818f Merge pull request 'add teddit.adminforge.de' (#271) from dominion/teddit:main into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/271
2021-12-18 14:30:18 +01:00
dominion 2ea766e01a „README.md“ ändern 2021-12-18 14:28:26 +01:00
dominion fd3d96a8d3 add teddit.adminforge.de 2021-12-18 14:27:56 +01:00
teddit be28d7fdfa Merge pull request 'Add instance teddit.totaldarkness.net' (#270) from TotalDarkness/teddit:main into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/270
2021-12-18 14:18:33 +01:00
TotalDarkness 168d896e69 Add instance teddit.totaldarkness.net 2021-12-18 03:46:53 -05:00
teddit 126eb5d0cc Merge pull request 'docs(instances): iba...onion is associated with xug...i2p' (#269) from curben/teddit:onion-i2p into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/269
2021-12-12 11:51:50 +01:00
Ming Di Leom 0cf6a2228f
docs(instances): iba...onion is associated with xug...i2p
- https://mdleom.com/about/#Services
2021-12-11 05:41:17 +00:00
teddit b476f9f2b6 update dependencies 2021-11-30 14:40:29 +01:00
teddit 0eb5ce1b6e Merge pull request 'Proxyable embeds for imgur' (#249) from 3np/teddit:imgur-proxy into main
Reviewed-on: https://codeberg.org/teddit/teddit/pulls/249
2021-11-27 15:07:48 +01:00
teddit c9637524ec set cache_control_interval in hours instead of milliseconds 2021-11-27 14:57:38 +01:00
teddit 9783091216 mention that config.cache_control_interval is in milliseconds 2021-11-26 23:04:46 +01:00
teddit 08e9f90233 update the descriptions for cache_control keys 2021-11-26 21:46:24 +01:00
teddit 30d0000dca fix the default config.cache_control_interval to 24 hours instead of 30 minutes 2021-11-26 21:34:51 +01:00
teddit d895e400ef rewrite the cache control script 2021-11-26 21:33:12 +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