Dessalines
d463b52eae
Changing wait to spawn in websocket.
2020-04-22 00:29:25 -04:00
Dessalines
3f6a4096f8
Fixing closures.
2020-04-21 16:48:54 -04:00
Dessalines
7f3db52516
Adding web::blocks to routes.
2020-04-21 16:40:03 -04:00
63f4283017
post -> register
2020-04-20 13:05:07 -05:00
63b2bde448
Use get_ip in ratelimit middleware
2020-04-20 13:02:25 -05:00
98f90d6800
Guard CreateCommunity, represent impossible error with Infallible
2020-04-20 12:31:22 -05:00
0e0ea559f0
Add websockets into the api scope
2020-04-20 10:25:47 -05:00
3b49acda16
Allow rustfmt on api config
2020-04-19 23:47:20 -05:00
b55e9c08df
Change RateLimit to act as a middleware
2020-04-19 22:59:07 -05:00
Dessalines
6f14f0756b
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
Dessalines
938c61b94f
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
Dessalines
0a6da1109d
Adding an admin settings page.
...
- Fixes #620
- Adding a UserListing component. Fixes #627
2020-04-10 16:55:57 -04:00
Dessalines
b0affad981
Changing markdown parser to comrak. Moving crate imports to lib.rs.
2020-03-28 18:02:49 -04:00
0090ae63e5
Convert md to html for feeds, try to deduplicate code
2020-03-28 16:56:20 +01:00
Dessalines
902676a9f8
Adding full logging.
2020-03-13 11:08:42 -04:00
Dessalines
049556f146
Add new comments views to main and community pages. Fixes #480
2020-02-07 23:05:15 -05:00
Dessalines
f74d7b0368
Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends.
2020-02-02 12:45:41 -05:00
Dessalines
f5b75f342b
Done merging http-api and private_message
2020-01-23 19:17:42 -05:00
Dessalines
7fdcae4f07
Merge remote-tracking branch 'nutomic/http-api' into dessalines-http-api
2020-01-23 11:01:06 -05:00
752318fdf3
api fixes
2020-01-23 15:22:17 +01:00
Dessalines
7d3adda0cd
Adding private messaging, and matrix user ids.
...
- Fixes #244
2020-01-22 16:38:16 -05:00
Dessalines
dc84ccaac9
Merge branch 'master' into dessalines-http-api
2020-01-19 10:06:25 -05:00
0a409bc9be
Use actual structs for nodeinfo
2020-01-19 12:32:02 +01:00
047ec97e18
rewrite api endpoint urls
2020-01-18 14:26:05 +01:00
2fb4900b0c
fix typo
2020-01-18 14:26:05 +01:00
cba8081579
fix formatting
2020-01-18 14:26:05 +01:00
415040a1e9
working!
2020-01-18 14:26:04 +01:00
7a97c981a0
try to simplify code with higher order functions
2020-01-18 14:23:44 +01:00
c41082f98f
Implement HTTP API using generics ( fixes #380 )
2020-01-18 14:23:43 +01:00
Dessalines
318ce4a52a
Fix issue with adding multiple instances of chatserver.
2020-01-15 22:01:14 -05:00
Dessalines
aa502b687d
A first pass at using materialized views.
2020-01-13 20:02:02 -05:00
Dessalines
7839eb6d40
Fixing nodeinfo endpoint.
2020-01-12 16:57:48 -05:00
Dessalines
34ddd62fd1
Cleaning up nodeinfo.
2020-01-12 12:52:19 -05:00
Dessalines
9755654734
Trying to add r2d2 connection pooling to websockets.
2020-01-12 10:31:51 -05:00
02bcbc42d6
Make various functions async
2020-01-11 13:50:07 +01:00
66c95993dc
Upgrade actix to 2.0 ( fixes #392 )
2020-01-10 23:41:08 +01:00
ddd4baf103
Apply changes suggested by cargo clippy ( fixes #395 )
2020-01-02 12:30:00 +01:00
Dessalines
22904e1c66
Adding open_registration to nodeinfo.
2019-12-31 10:44:30 -05:00
f7156bdac3
Use actix config to handle routes in seperate folders ( #378 )
2019-12-31 14:17:24 +01:00