Commit Graph

4351 Commits (24c98a726af9977c6aed4baefaf20143803de059)

Author SHA1 Message Date
phiresky 24c98a726a
Merge pull request #3960 from LemmyNet/add_federation_worker_index
Fixing high CPU usage on federation worker recheck + fix federation tests. Fixes #3958
2023-09-21 16:40:04 +02:00
phiresky 9bcadadede fix after merge 2023-09-21 12:52:10 +00:00
phiresky fe40adfc39 fix after merge 2023-09-21 12:32:41 +00:00
phiresky 31f3677270 fix after merge 2023-09-21 12:01:22 +00:00
phiresky 5941dc2924 Merge remote-tracking branch 'origin/main' into add_federation_worker_index 2023-09-21 11:57:13 +00:00
phiresky 07ffdc3d53 Revert "Revert "re-remove lemmy logs""
This reverts commit 459d5a3726.
2023-09-21 11:45:43 +00:00
phiresky 2c283d90ca Revert "Revert "re-remove debug comments""
This reverts commit 6d519ef376.
2023-09-21 11:45:33 +00:00
phiresky dec25f9ee8 ensure overlap 2023-09-21 11:11:54 +00:00
phiresky 6d519ef376 Revert "re-remove debug comments"
This reverts commit ae37ca0137.
2023-09-21 11:07:36 +00:00
phiresky 459d5a3726 Revert "re-remove lemmy logs"
This reverts commit ac0c0c8856.
2023-09-21 11:07:20 +00:00
Nutomic f858d8cbce
Remove explicit auth params (#3946)
* Remove explicit auth params (ref #3725)

Only take auth via header or cookie. This requires a new version
of lemmy-js-client for api tests to pass.

* rework api_crud

* remove remaining auth params, move logic to session middleware

* fmt, fix test

* update js client

* remove auth param from api tests

* Pass auth as header

* add !

* url vars, setHeader

* cleanup

* fmt

* update

* Updating for new lemmy-js-client.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-21 06:42:28 -04:00
phiresky 7e8b973128 empty 2023-09-20 21:21:23 +00:00
phiresky f16aa9228d community fix 2023-09-20 21:00:30 +00:00
phiresky 1b7ab96887 wait until ban post removed 2023-09-20 20:26:00 +00:00
phiresky ac0c0c8856 re-remove lemmy logs 2023-09-20 16:07:01 +00:00
phiresky 2dbaf67b7c
Merge branch 'main' into add_federation_worker_index 2023-09-20 18:06:44 +02:00
phiresky ae37ca0137 re-remove debug comments 2023-09-20 15:33:09 +00:00
phiresky a808d3208a use max(id) instead of seq max value to prevent uncommitted transactions from causing skipped activities 2023-09-20 14:57:18 +00:00
Nutomic 22608ae983
Rework the way 2FA is enabled/disabled (fixes #3309) (#3959)
* Rework the way 2FA is enabled/disabled (fixes #3309)

* postgres format

* change algo to sha1 for better compat

* review comments

* review

* clippy

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-20 10:49:54 -04:00
phiresky 3d649e1d3e remove synchronous federation flag 2023-09-20 14:22:17 +00:00
phiresky 1a0c866b51 logging temporary 2023-09-20 13:37:18 +00:00
Dessalines 77b2d236b9
Forgot to add ts export to pagination cursor. (#3971) 2023-09-20 15:28:56 +02:00
SleeplessOne1917 a866b3424d
Make local federated instances use comnpose file for build (#3968)
* Make local federated instances use comnpose file for build

* Remove commented out part of script
2023-09-20 09:14:51 -04:00
phiresky a61d564732 fix delete test 2023-09-20 13:07:36 +00:00
phiresky a59a94492d more debug log 2023-09-20 12:30:38 +00:00
phiresky 78a8a7b8b7 clippy 2023-09-20 11:41:34 +00:00
phiresky c792f46c59 more wait for 2023-09-20 11:38:12 +00:00
phiresky ae3b8f4f76 fix 2023-09-20 11:23:02 +00:00
phiresky 2e7d2d1956 wait for post api test function, better announce activity id 2023-09-20 11:23:02 +00:00
Nutomic 50f81cf157
User can block instances (fixes #2397) (#3869)
* User can block instances (fixes #2397)

* update comments

* review comments

* use route

* update

* add api test

* update tests

* fix

* fix test

* ci

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-20 11:56:13 +02:00
Dessalines 89b7c981f5
Fixing GetPostsResponse serialization. (#3967) 2023-09-20 11:49:26 +02:00
Dessalines c25734e4ca
Merge branch 'main' into add_federation_worker_index 2023-09-18 19:19:24 -04:00
Dessalines 8c419103b2 Fixing formatting. 2023-09-18 19:19:13 -04:00
Dessalines 4f85adc393
Merge branch 'main' into add_federation_worker_index 2023-09-18 19:16:49 -04:00
phiresky 990445bf84 tmp tail lemmy log 2023-09-18 21:08:17 +00:00
phiresky a19b1d2606 ci 2023-09-18 21:02:52 +00:00
phiresky afde8e7576 tweak more tests 2023-09-18 20:31:12 +00:00
phiresky dff54d5e39 tweak tests more 2023-09-18 19:58:20 +00:00
Apple Sheeple c05458adcd Sanitize registration application answer
Signed-off-by: Apple Sheeple <AppleSheeple@github>
2023-09-18 22:39:29 +03:00
Apple Sheeple 5fff7504e5 Reject registration application if sanitizing the username modifies it
This removes the possibility of using a mix of sanitized and
 non-sanitized values for `username` in code.

Signed-off-by: Apple Sheeple <AppleSheeple@github>
2023-09-18 22:39:20 +03:00
phiresky 7dd857e00b log result 2023-09-18 19:19:40 +00:00
phiresky 2f0ad53b60 wait longer for fed init 2023-09-18 18:39:09 +00:00
phiresky 9868065089 minor test improvement 2023-09-18 18:23:55 +00:00
phiresky d58e2e9db7 minor test improvement 2023-09-18 18:09:18 +00:00
phiresky 007f4f5319 wait on score 2023-09-18 17:30:02 +00:00
phiresky 954b3f443d fix wait 2023-09-18 17:28:23 +00:00
phiresky 9e886fba4a delay shorter 2023-09-18 16:49:55 +00:00
phiresky 88931227b0 Merge remote-tracking branch 'origin/main' into add_federation_worker_index 2023-09-18 16:45:23 +00:00
phiresky 943b960c32 fix waits after all follow actions 2023-09-18 16:29:08 +00:00
phiresky 48496599b2 ci 2023-09-18 15:45:39 +00:00