916592944a
Verify activitypub payload digests ( #885 )
2020-07-03 13:22:39 -04:00
a074564458
Federation async ( #848 )
...
* Asyncify more
* I guess these changed
* Clean PR a bit
* Convert more away from failure error
* config changes for testing federation
* It was DNS
So actix-web's client relies on TRust DNS Resolver to figure out
where to send data, but TRust DNS Resolver seems to not play nice
with docker, which expressed itself as not resolving the name to
an IP address _the first time_ when making a request. The fix was
literally to make the request again (which I limited to 3 times
total, and not exceeding the request timeout in total)
* Only retry for connecterror
Since TRust DNS Resolver was causing ConnectError::Timeout,
this change limits the retry to only this error, returning
immediately for any other error
* Use http sig norm 0.4.0-alpha for actix-web 3.0 support
* Blocking function, retry http requests
* cargo +nightly fmt
* Only create one pictrs dir
* Don't yarn build
* cargo +nightly fmt
2020-07-01 08:54:29 -04:00
0f1a8ec928
Merge branch 'master' into federation
2020-06-09 14:01:26 +02:00
8f9bd1fef7
get some more things working
2020-05-28 15:20:12 +02:00
cac7011d53
move logic to sharedinbox
2020-05-28 13:44:52 +02:00
Dessalines
80653a5317
Remove federation option from master. ( #745 )
2020-05-25 18:48:24 -04:00
f15c3b4e1e
Merge branch 'yerba_rework-imports' into federation
2020-05-16 21:09:26 -04:00
9e61c3be94
Rework imports
2020-05-16 20:04:17 +02:00
Dessalines
940dc73f28
Federated mentions. Fixes #681 ( #717 )
...
* Federated mentions. Fixes #681
* Changing some todos, adding comments.
2020-05-15 12:36:11 -04:00
bb1b4ee33e
Comment search and apub endpoint
2020-05-14 12:42:26 +02:00
15f1920b25
Federated private messages.
2020-05-05 22:06:24 -04:00
70060c27b2
Adding activity table inserts.
2020-04-27 18:17:02 -04:00
22abbebd41
Lots of additions to federation.
...
- Added a shared inbox.
- Added federated comments, comment updates, and tests.
- Abstracted ap object sends into a common trait.
2020-04-27 12:57:00 -04:00
d846740839
Some more cleanup.
2020-04-24 15:55:54 -04:00
66a2c4a2c3
Some fed fixes.
2020-04-24 10:04:36 -04:00
70816a4779
Fix header guard for apub responses
2020-04-22 20:56:31 +02:00
313d023eef
Changing wait to spawn in websocket.
2020-04-22 00:29:25 -04:00
92e30311ce
Merge branch 'federation' of https://yerbamate.dev/LemmyNet/lemmy into federation
2020-04-21 20:41:50 -04:00
0425e8b114
Fixing nodeinfo error type.
2020-04-21 20:34:37 -04:00
18e570b021
Merge branch 'master' into merge_master_2
2020-04-21 20:29:52 -04:00
809cc1049e
Fixing closures.
2020-04-21 16:48:54 -04:00
957e4a2611
Change apub IDs to be consistent with html urls
2020-04-21 22:45:01 +02:00
d98c936295
Adding web::blocks to routes.
2020-04-21 16:40:03 -04:00
f0026065f5
Merge branch 'master' into federation_merge_from_master_1
2020-04-21 10:25:29 -04:00
d11af012fc
post -> register
2020-04-20 13:05:07 -05:00
d058db95e5
Use get_ip in ratelimit middleware
2020-04-20 13:02:25 -05:00
904ebf34a5
Guard CreateCommunity, represent impossible error with Infallible
2020-04-20 12:31:22 -05:00
db4454b52b
Add websockets into the api scope
2020-04-20 10:25:47 -05:00
217efdd706
Allow rustfmt on api config
2020-04-19 23:47:20 -05:00
ac43b86b60
Change RateLimit to act as a middleware
2020-04-19 22:59:07 -05:00
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
8908c8b184
Some code cleanup and better logging
2020-04-17 16:55:28 +02:00
9c974fbe50
Remove instance follows
2020-04-17 16:39:03 +02:00
86f172076b
Implement search for activitypub IDs
2020-04-17 15:46:08 +02:00
9a85f1b25f
Send activities to correct inbox, seperate community/user inboxes
2020-04-15 20:12:25 +02:00
1336b4ed60
Merge branch 'dev' into federation
2020-04-14 16:07:20 -04:00
19c8461397
Implemented follow/accept
2020-04-14 17:37:23 +02:00
fdaf0b3364
Get inbox working properly
2020-04-13 15:06:41 +02:00
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
bb287cbd07
Adding an admin settings page.
...
- Fixes #620
- Adding a UserListing component. Fixes #627
2020-04-10 16:55:57 -04:00
492625f6d6
Add to/cc (and a bunch of todo)
2020-04-10 13:26:06 +02:00
483d11e772
Minor code cleanup
2020-04-09 21:26:22 +02:00
0b617377df
Implement create activity
2020-04-09 21:04:31 +02:00
6962b9c433
Use Url instead of String
2020-04-08 14:37:05 +02:00
6a7a262912
Merge branch 'federation_add_fed_columns' of https://yerbamate.dev/dessalines/lemmy into federation
2020-04-03 07:24:46 +02:00
96c3621a80
Share list of communities over apub, some refactoring
2020-04-03 07:02:43 +02:00
31f835db86
Merge branch 'master' into federation
2020-04-02 15:11:11 -04:00
1571a4acd4
Changing markdown parser to comrak. Moving crate imports to lib.rs.
2020-03-28 18:02:49 -04:00
bafc2fc7ac
Convert md to html for feeds, try to deduplicate code
2020-03-28 16:56:20 +01:00
875545f7e1
Adjust for updated Rust version
2020-03-19 19:01:01 +01:00