Commit graph

400 commits

Author SHA1 Message Date
Dessalines
a8160288ae Merge remote-tracking branch 'yerba/cache-control' 2020-06-02 14:03:38 -04:00
Felix Ableitner
21e913192a Add cache-control header to HTTP responses based on mime 2020-06-02 19:22:00 +02:00
Dessalines
847e19f22d Version v0.6.65 2020-05-28 14:13:47 -04:00
Dessalines
29fc3681b9
Validate register usernames on the back-end. Fixes #716 (#750)
* Validate register usernames on the back-end. Fixes #716

* Changing name to is_valid_username
2020-05-28 14:07:36 -04:00
Dessalines
80653a5317
Remove federation option from master. (#745) 2020-05-25 18:48:24 -04:00
Dessalines
4f518a5d92 Version v0.6.64 2020-05-24 13:25:50 -04:00
Dessalines
ed553aa9f0 Updating sponsor link. 2020-05-21 21:15:39 -04:00
Dessalines
18d0edd4eb Version v0.6.63 2020-05-18 09:53:02 -04:00
Dessalines
106ce6096b Version v0.6.62 2020-05-17 18:46:15 -04:00
Dessalines
f5e96d9372 Version v0.6.61 2020-05-17 16:53:56 -04:00
Dessalines
6fe4184f72 Adding Greek and Basque languages for weblate. 2020-05-16 22:52:28 -04:00
Dessalines
155b99b64e Version v0.6.60 2020-05-12 15:27:28 -04:00
Dessalines
f971e31171 Changing image_content_type function to Result. (#711)
* Changing image_content_type function to Result.

* Changing image to image/
2020-05-12 15:23:48 -04:00
Dessalines
c22310bdaf Version v0.6.59 2020-05-11 19:08:28 -04:00
Dessalines
eb72ace854 Pictshare only cache image content types. Fixes #709 2020-05-11 19:06:12 -04:00
Dessalines
cb88510964 Version v0.6.58 2020-05-11 14:04:23 -04:00
Dessalines
f7c947888f Removing 2nd match. 2020-05-11 14:01:10 -04:00
Dessalines
2719daffb0 Merge branch 'thumbnail-outsourced' of https://github.com/AndreVallestero/lemmy into AndreVallestero-thumbnail-outsourced 2020-05-11 13:20:03 -04:00
Richie Zhang
d17316508c Improve shell scripts (#705)
* Improve init-db.sh

Allow custom database parameters.
Abstract common functionality.

* Improve install.sh

Abstract common functionality.
Ask to automagically reload the project when source files are changed.
2020-05-11 13:16:08 -04:00
Dessalines
b83aae0b57 Version v0.6.57 2020-05-08 14:08:35 -04:00
Andre Vallestero
38381ba287 Removed hardcoded thumbnail value 2020-05-07 21:33:47 -04:00
Andre Vallestero
243dda543c Removed debug line 2020-05-06 20:46:00 -04:00
Andre Vallestero
d96c66ba9f Thumbnail generation for iframely incompatible sources 2020-05-06 20:40:36 -04:00
Dessalines
88e1251d6b Version v0.6.56 2020-05-03 17:27:25 -04:00
Dessalines
2f7a4ecdb2 Updating Cargo deps. Fixes #666 2020-05-03 17:25:55 -04:00
pfcoder
6d73b16716 fix shell quotation error of server db-init.sh 2020-05-01 21:58:52 +08:00
Dessalines
66134823bf Version v0.6.55 2020-04-27 09:07:31 -04:00
Dessalines
92e4edf9b7 Version v0.6.54 2020-04-26 10:57:27 -04:00
Dessalines
c22090c602 Version v0.6.53 2020-04-22 00:30:43 -04:00
Dessalines
313d023eef Changing wait to spawn in websocket. 2020-04-22 00:29:25 -04:00
Dessalines
b2a89cd217 Version v0.6.52 2020-04-21 20:43:38 -04:00
Dessalines
6b58080067 Adding websocket blocking. 2020-04-21 17:57:20 -04:00
Dessalines
809cc1049e Fixing closures. 2020-04-21 16:48:54 -04:00
Dessalines
01b7ac5fb9 Merge branch 'master' into routes_web_block 2020-04-21 16:41:07 -04:00
Dessalines
d98c936295 Adding web::blocks to routes. 2020-04-21 16:40:03 -04:00
Dessalines
b98fa12741 Version v0.6.51 2020-04-20 15:40:56 -04:00
Dessalines
217a9b00b8 Merge branch 'abstract_websocket_sends' 2020-04-20 15:39:34 -04:00
Dessalines
c0f4d5260f Merge branch 'asonix-abstract_websocket_sends' into abstract_websocket_sends 2020-04-20 15:03:32 -04:00
Dessalines
0d4679a37b Making websocket create community do register rate limit. 2020-04-20 14:55:37 -04:00
asonix
05b961a90a Remove unused methods 2020-04-20 13:09:10 -05:00
asonix
d11af012fc post -> register 2020-04-20 13:05:07 -05:00
asonix
d058db95e5 Use get_ip in ratelimit middleware 2020-04-20 13:02:25 -05:00
asonix
4df2031ae0 Give ratelimit fields explicit names 2020-04-20 12:51:42 -05:00
asonix
904ebf34a5 Guard CreateCommunity, represent impossible error with Infallible 2020-04-20 12:31:22 -05:00
asonix
db4454b52b Add websockets into the api scope 2020-04-20 10:25:47 -05:00
Dessalines
c18fa5a38e Changing warn to debug for rate limiting message. 2020-04-20 10:45:14 -04:00
asonix
217efdd706 Allow rustfmt on api config 2020-04-19 23:47:20 -05:00
asonix
4712ae4eb0 appease clippy 2020-04-19 23:43:30 -05:00
asonix
ac43b86b60 Change RateLimit to act as a middleware 2020-04-19 22:59:07 -05:00
Dessalines
f300c67a4d Adding websocket notification system.
- HTTP and APUB clients can now send live updating messages to websocket
  clients
- Rate limiting now affects both HTTP and websockets
- Rate limiting / Websocket logic is now moved into the API Perform
  functions.
- TODO This broke getting current online users, but that will have to
  wait for the perform trait to be made async.
- Fixes #446
2020-04-19 18:08:25 -04:00