Commit Graph

109 Commits

Author SHA1 Message Date
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
asonix
217efdd706 Allow rustfmt on api config 2020-04-19 23:47:20 -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
8908c8b184 Some code cleanup and better logging 2020-04-17 16:55:28 +02:00
Felix
9c974fbe50 Remove instance follows 2020-04-17 16:39:03 +02:00
Felix
86f172076b Implement search for activitypub IDs 2020-04-17 15:46:08 +02:00
Felix
9a85f1b25f Send activities to correct inbox, seperate community/user inboxes 2020-04-15 20:12:25 +02: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
Felix
fdaf0b3364 Get inbox working properly 2020-04-13 15:06:41 +02: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
Dessalines
bb287cbd07 Adding an admin settings page.
- Fixes #620
- Adding a UserListing component. Fixes #627
2020-04-10 16:55:57 -04:00
Felix
492625f6d6 Add to/cc (and a bunch of todo) 2020-04-10 13:26:06 +02:00
Felix
483d11e772 Minor code cleanup 2020-04-09 21:26:22 +02:00
Felix
0b617377df Implement create activity 2020-04-09 21:04:31 +02:00
Felix Ableitner
6962b9c433 Use Url instead of String 2020-04-08 14:37:05 +02:00
Felix Ableitner
6a7a262912 Merge branch 'federation_add_fed_columns' of https://yerbamate.dev/dessalines/lemmy into federation 2020-04-03 07:24:46 +02:00
Felix Ableitner
96c3621a80 Share list of communities over apub, some refactoring 2020-04-03 07:02:43 +02:00
Dessalines
31f835db86 Merge branch 'master' into federation 2020-04-02 15:11:11 -04:00
Dessalines
1571a4acd4 Changing markdown parser to comrak. Moving crate imports to lib.rs. 2020-03-28 18:02:49 -04:00
Felix
bafc2fc7ac Convert md to html for feeds, try to deduplicate code 2020-03-28 16:56:20 +01:00
Felix Ableitner
875545f7e1 Adjust for updated Rust version 2020-03-19 19:01:01 +01:00
Felix Ableitner
33cce05300 Merge branch 'master' into federation 2020-03-18 22:51:34 +01:00
Felix Ableitner
390b204272 Rewrite federation settings 2020-03-18 22:09:00 +01:00
Felix Ableitner
bd030470b1 Read remote nodeinfo before doing anything 2020-03-18 16:08:08 +01:00
Felix Ableitner
5043a52b88 Serve post data in apub format, some cleanup 2020-03-16 19:19:04 +01:00
Felix Ableitner
8ebcc7ac02 Implemented basics for post federation, plus a bunch of other stuff 2020-03-14 22:03:05 +01:00
Felix Ableitner
b01f4f75d6 WIP: federate posts between instances 2020-03-14 01:05:42 +01:00
Dessalines
62ab68d317 Adding full logging. 2020-03-13 11:08:42 -04:00
Felix
f9443dfbd3 Merge branch 'master' into federation 2020-02-29 00:47:37 +01:00
Dessalines
ecd10482a6 Add new comments views to main and community pages. Fixes #480 2020-02-07 23:05:15 -05:00
Dessalines
d932acad16 Merge branch 'federation' into dev_1 2020-02-05 12:51:03 -05:00
Dessalines
96a7e99e57 Removing PostLikeResponse in favor of PostResponse. Consolidating comment and post_sends. 2020-02-02 12:45:41 -05:00
Dessalines
ac1d5f2b86 Done merging http-api and private_message 2020-01-23 19:17:42 -05:00
Dessalines
55a144699e Merge remote-tracking branch 'nutomic/http-api' into dessalines-http-api 2020-01-23 11:01:06 -05:00
Felix
2f21071606 api fixes 2020-01-23 15:22:17 +01:00
Dessalines
253bc3e0af Adding private messaging, and matrix user ids.
- Fixes #244
2020-01-22 16:38:16 -05:00
Dessalines
2d144b5a58 Merge branch 'master' into dessalines-http-api 2020-01-19 10:06:25 -05:00
Felix
bd34b2a083 Use actual structs for nodeinfo 2020-01-19 12:32:02 +01:00
Felix
cde4a8a977 rewrite api endpoint urls 2020-01-18 14:26:05 +01:00
Felix
643189160e fix typo 2020-01-18 14:26:05 +01:00
Felix
2c55292544 fix formatting 2020-01-18 14:26:05 +01:00
Felix
f1035dacc2 working! 2020-01-18 14:26:04 +01:00
Felix
19afdf993e try to simplify code with higher order functions 2020-01-18 14:23:44 +01: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
Felix
eaf548b5db Merge branch 'master' into federation 2020-01-14 16:30:54 +01:00
Dessalines
8f32b84b5a A first pass at using materialized views. 2020-01-13 20:02:02 -05:00
Dessalines
a7a0d35ed3 Fixing nodeinfo endpoint. 2020-01-12 16:57:48 -05:00
Dessalines
aeec25838a Cleaning up nodeinfo. 2020-01-12 12:52:19 -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
e09a035373 Merge branch 'master' into federation 2020-01-02 19:22:23 +01:00
Felix Ableitner
d08e09fbdc Apply changes suggested by cargo clippy (fixes #395) 2020-01-02 12:30:00 +01: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