Commit graph

52 commits

Author SHA1 Message Date
Felix 9e61c3be94 Rework imports 2020-05-16 20:04:17 +02:00
Dessalines f0026065f5 Merge branch 'master' into federation_merge_from_master_1 2020-04-21 10:25:29 -04:00
asonix 4df2031ae0 Give ratelimit fields explicit names 2020-04-20 12:51:42 -05:00
asonix db4454b52b Add websockets into the api scope 2020-04-20 10:25:47 -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
Felix 9c974fbe50 Remove instance follows 2020-04-17 16:39:03 +02:00
Dessalines 7ba6ee8714 Redundant to_owned 2020-04-14 19:25:58 -04:00
Dessalines 1336b4ed60 Merge branch 'dev' into federation 2020-04-14 16:07:20 -04:00
Felix 19c8461397 Implemented follow/accept 2020-04-14 17:37:23 +02:00
Dessalines c92201a674 Removing redundant to_owned 2020-04-11 14:10:33 -04:00
Dessalines 61815bce2e Adding live reloading of config.hjson changes through UI.
- https://stackoverflow.com/questions/61159698/update-re-initialize-a-var-defined-in-lazy-static/61161271#61161271
- https://stackoverflow.com/questions/29654927/how-do-i-assign-a-string-to-a-mutable-static-variable/47181804#47181804
2020-04-11 14:06:04 -04:00
Felix 509005fa0c Rename federation-test to federation, puller.rs to fetcher.rs 2020-04-10 13:37:35 +02:00
Felix Ableitner b7103a7e14 Store remote communities/posts in db, federate posts! 2020-04-07 18:47:19 +02:00
Dessalines 9197b39ed6 Federation DB Changes.
- Creating an activity table.
- Adding some federation-related columns to the user_ and community
  tables.
- Generating the actor_id and keys in code, updating the tables.
2020-04-03 00:12:05 -04:00
Felix 1e60e1e351 Implement HTTP API using generics (fixes #380) 2020-01-18 14:23:43 +01:00
Dessalines 81c6d276d5 Fix issue with adding multiple instances of chatserver. 2020-01-15 22:01:14 -05:00
Dessalines 3f868f99e6 removing some comments. 2020-01-12 16:47:02 -05:00
Dessalines dff8b947bb Trying to add r2d2 connection pooling to websockets. 2020-01-12 10:31:51 -05:00
Felix 4361f48b98 Make various functions async 2020-01-11 13:50:07 +01:00
Felix d8c84e2541 Upgrade actix to 2.0 (fixes #392) 2020-01-10 23:41:08 +01:00
Felix Ableitner d08e09fbdc Apply changes suggested by cargo clippy (fixes #395) 2020-01-02 12:30:00 +01:00
Dessalines 0f8965fac9 Adding some fixes to new docs system. 2020-01-01 17:47:00 -05:00
Dessalines cd9df4455e Adding open_registration to nodeinfo. 2019-12-31 10:44:30 -05:00
Felix Ableitner 80f76f2efd Use actix config to handle routes in seperate folders (#378) 2019-12-31 14:17:24 +01:00
Dessalines 786be3fa66 Config fixes.
- Adding front_end_dir to settings.
- Adding unit test for PasswordResetRequest encryption.
- Readme points to lemmy.hjson
- Fixing docker prod, dev, and ansible builds.
- Removing redundant env files, as all config is now in a single file.
- Some formatting fixes.
2019-12-28 16:11:03 -05:00
Felix Ableitner cdbf260803 Added option to enable/disable federation 2019-12-27 17:30:45 +01:00
Felix Ableitner 3d9f7d28d6 Implement webfinger (fixes #149) 2019-12-27 17:29:50 +01:00
Felix Ableitner cf3ae15ee9 Implement config (fixes #351) 2019-12-27 17:28:44 +01:00
Lyra 34def84d43 Add correct ActivityPub types conversion for Community and Post. 2019-12-27 17:25:20 +01:00
Dessalines 665dca80d0 Moving front end routes from nginx to actix
- Fixes #363
2019-12-11 21:28:33 -08:00
Lyra 0ceed8fd9b Import the Settings struct instead of prefixing the namespace 2019-12-06 23:47:30 +01:00
Lyra 279a901e4a Add configuration variables in order to allow binding lemmy to a different adress/port 2019-12-06 20:36:56 +01:00
Dessalines 52ea7a32db Some RSS work.
- Display rss buttons on front end for user, /c/all, and community
pages. Fixes #348.
- Some clean up and additions to RSS feeds.
2019-12-01 17:23:52 -08:00
Felix Ableitner 8e5c02f967 Add feed for all 2019-12-01 20:01:38 +01:00
Felix Ableitner cfbe8ac926 fix sort parameter handling, handle errors 2019-12-01 19:09:10 +01:00
Felix Ableitner f47bdbc37a wip 2019-11-23 23:25:59 +01:00
Felix Ableitner 942f6a05af basic, working rss feeds 2019-11-23 23:24:50 +01:00
Felix Ableitner de313fc977 Implement RSS feeds (fixes #118) 2019-11-23 23:24:10 +01:00
Dessalines dcad96170e Running cargo fmt 2019-11-21 11:27:52 -08:00
Felix Ableitner 20966e085a preserve json order 2019-11-16 01:31:41 +01:00
Felix Ableitner 2666ba6adf rewrite 2019-11-16 01:31:41 +01:00
Felix Ableitner 4f116dc758 got it working 2019-11-16 01:31:41 +01:00
Felix Ableitner fcf3252292 Implement nodeinfo support (fixes #144) 2019-11-16 01:31:41 +01:00
Dessalines 44442565aa Running cargo fmt on server code.
- Adding a .rustfmt.toml for the 2 space indent.
2019-09-07 08:35:05 -07:00
Dessalines 9bf561b7c2 Formatting fixes. 2019-07-19 20:00:38 -07:00
jonnnh eea27088d2 upgrade 2019-07-19 11:05:17 +08:00
jonnnh 28b69fb1fc upgrade 2019-07-17 19:11:01 +08:00
Dessalines 5e1fcd318a Adding API docs for app developers.
- Fixes #99.
2019-05-15 09:04:05 -07:00
Dessalines f8615b6178 Done with reorg 2019-05-05 09:20:30 -07:00