Commit graph

3722 commits

Author SHA1 Message Date
bd31475dba Adding a banned endpoint for admins. Removing it from GetSite. Fixes 2022-01-04 09:50:30 -05:00
b733df2903
Merge pull request from robjtede/aw-b18
Updated actix-web dependency to `4.0.0-beta.18`
2022-01-04 14:40:54 +00:00
Rob Ede
1943bcd7f5
Prevent panic on InboxRequestGuard 2021-12-30 18:41:35 +00:00
Rob Ede
f6c13cf313
Updated actix-web dependency to 4.0.0-beta.18 2021-12-30 18:37:59 +00:00
Dessalines
3065154f4e
Merge pull request from LemmyNet/another_tokenizer_fix
Trying another tokenizer fix. 
2021-12-21 17:24:44 -05:00
Kradyz
9f64872d5a
Case-insensitive webfinger response. Fixes & ()
* Make webfinger case insensitive

* Make webfinger case insensitive

* Case insensitive domain name

* Case-insensitive webfinger

* formatting

Co-authored-by: Kradyz <k@radiz.nl>
2021-12-20 17:23:06 -05:00
ad4715c2a3 Trying another tokenizer fix. 2021-12-20 16:57:36 -05:00
Dessalines
c883a49a40
First pass at invite-only migration. ()
* First pass at invite-only migration.

* Implement email verification (fixes )

* remove unwrap

* Adding views and functionality to registration application. 

* Add private instance site column, and back end checks.

* Adding some message fields to LoginResponse

* Adding private instance to site setup.

* A few additions:

- Add a DeleteAccount response.
- RegistrationApplicationView now has the safe LocalUserSettings.
- Adding VerifyEmail to websocket API, added a proper response type.

* Adding and reorganizing some email helpers.

* A few fixes for private sites:

- Added a check_registration_application function.
- Only send a verification email if its been changed.
- VerifyEmail now returns LoginResponse.
- Deleting the old tokens after a successful email verify.
- If port is missing on email config, display a better error message.

* Version 0.15.0-rc.3

* Adding published to email_verification table.

* Adding fixes from comments.

* Version 0.15.0-rc.4

* Adding modlog private site check.

* Version 0.15.0-rc.6

Co-authored-by: Felix Ableitner <me@nutomic.com>
2021-12-15 14:49:59 -05:00
Dessalines
1410c5659c
Upgrading deps () 2021-12-14 13:30:37 +00:00
Dessalines
1880d64235
Upgrading pictrs. () 2021-12-14 13:24:33 +00:00
Dessalines
4a46dc805f
Trying out an upgraded version of html5ever. ()
* Trying out an upgraded version of html5ever. 

* New release of webpage.
2021-12-12 23:49:25 +00:00
Dessalines
161d41999d
Adding min setup password length to the docs. Fixes () 2021-12-12 16:42:24 +00:00
c6ac606f60
Test pleroma follow ()
* Add test case for Pleroma follow activity (ref )

* Use WithContext in apub tests where possible
2021-12-11 21:39:18 -05:00
0ed3856ef1
Remove awc ()
* Remove unused awc dep

* Replace awc pict-rs client with reqwest

* Reinstate 30 second pict-rs timeout
2021-12-08 10:56:43 -05:00
Dessalines
7d07bc16ae
Merge pull request from LemmyNet/asonix/reqwest-middleware
Consolidate reqwest clients, use reqwest-middleware for tracing
2021-12-08 10:51:46 -05:00
5b3d707d8f Use from_message for static error string 2021-12-07 17:17:19 -06:00
2cf3278724 Update deps 2021-12-06 18:12:04 -06:00
97ebf2f6f3 Consolidate reqwest clients, use reqwest-middleware for tracing 2021-12-06 16:54:34 -06:00
35cbae61bc
Don't drop error context when adding a message to errors ()
* Respond directly with LemmyError

Instrument Perform implementations for more precise traces
Use ApiError to format JSON errors when messages are present
Keep SpanTrace output in LemmyError Display impl

* Hide SpanTrace debug output from LemmyError

* Don't log when entering spans, only when leaving

* Update actix-web

* Update actix-rt

* Add newline after error info in LemmyError Display impl

* Propogate span information to blocking operations

* Instrument apub functions

* Use skip_all for more instrument attributes, don't skip 'self' in some api actions

* Make message a static string

* Send proper JSON over websocket

* Add 'message' to LemmyError display if present

* Use a quieter root span builder, don't pretty-print logs

* Keep passwords and emails out of logs

* Re-enable logging Login

* Instrument feeds

* Emit our own errors

* Move error log after status code recording

* Make Sensitive generic over the inner type

* Remove line that logged secrets
2021-12-06 09:54:47 -05:00
Marcin Wojnarowski
4a541a25ab
Change lemmur repo links () 2021-12-06 08:17:59 -05:00
Marty
8ce0c6d618
added deps - git and ca-certificates (for federation to work) and changed adduser to useradd so that user can be added non-interactively () 2021-12-06 01:35:50 +01:00
Dessalines
4e9ecb2632
Allow comment replies from blocked users. Fixes ()
* Allow comment replies from blocked users. Fixes 

* Clearer check block.
2021-12-05 17:45:40 +00:00
Dessalines
040770d7ba
Fix retry infinite loops. Fixes ()
* Fix retry infinite loops. Fixes 

* Moving retry_limit to settings
2021-12-05 10:03:13 -05:00
8bf0f31b0f
Merge pull request from vpzomtrrfrt/oneormany2
Allow single item for to, cc, and @context
2021-12-03 12:50:52 +00:00
Colin Reeder
e2baed9a6d
Add lotide activities to tests 2021-12-02 22:44:52 -07:00
Colin Reeder
a91c0c8feb
Allow single item for to, cc, and @context 2021-11-26 21:55:33 -07:00
Dessalines
ad76c75821
Trying to add docker:latest. Fixes ()
* Trying to add docker:latest. Fixes 

* Version 0.14.4-rc.3

* Trying to fix clippy on crate build

* Version 0.14.4-rc.4
2021-11-26 12:38:55 +00:00
Dessalines
be65b6869f
Merge pull request from LemmyNet/disable-edit-email-notifications
Dont send email notifications for edited comments (fixes )
2021-11-25 13:00:26 -05:00
Dessalines
e765b42d46
Adding a captcha rate limit. Fixes ()
* Adding a captcha rate limit. Fixes 

* Changing to post rate limit.
2021-11-25 13:04:19 +00:00
27a687bcd0 Dont send email notifications for edited comments (fixes ) 2021-11-24 22:29:29 +01:00
97b8b9c255 Version 0.14.3 2021-11-23 14:39:55 -05:00
Dessalines
7363b19f01
Merge pull request from LemmyNet/fix_ap_id_dupes_query
Fix API dupes query. 
2021-11-23 14:37:58 -05:00
f6b96370b8 Fix API dupes query. 2021-11-23 14:30:16 -05:00
7f01d8cde6 Version 0.14.2 2021-11-23 11:48:49 -05:00
b1f7bad0a3 Version 0.14.2-rc.1 2021-11-23 11:12:46 -05:00
Dessalines
46c7429429
Fixing duped report view for admins. Fixes ()
* Fixing duped report view for admins. Fixes 

* Fixing tests.
2021-11-23 15:54:30 +00:00
Dessalines
d2e28e5f38
Adding a GetComment endpoint. Fixes () 2021-11-23 15:53:48 +00:00
Dessalines
451818749b
Fix min title char count for post titles. Fixes ()
* Fix min title char count for post titles. Fixes 

* Adding more newline checks for actors.

* Adding helper function
2021-11-23 15:52:58 +00:00
Dessalines
86b2901e8c
Adding MarkPostAsRead to API. Fixes ()
* Adding MarkPostAsRead to API. Fixes 

* Adding error
2021-11-23 14:15:43 +00:00
1579ee566f
background-jobs 0.11 () 2021-11-23 12:20:01 +00:00
3fea5645f8
Add tracing () 2021-11-23 12:16:47 +00:00
Dessalines
88c7b95d03
Remove pointless community follower sort. () 2021-11-23 12:05:09 +00:00
Dessalines
3e062a9959
Merge pull request from LemmyNet/once_cell
Use once_cell instead of lazy_static
2021-11-22 14:27:08 -05:00
e88106cef4 Use once_cell instead of lazy_static 2021-11-22 19:58:31 +01:00
Dessalines
3d08e6c1fc
Adding unique constraint for activity ap_id. Fixes ()
* Adding unique constraint for activity ap_id. Fixes 

* Removing is_activity_already_known
2021-11-22 18:57:03 +00:00
76c4378011
Merge pull request from LemmyNet/required_public_key
Making public key required. Fixes 
2021-11-22 15:37:05 +00:00
05d43150bc Making public key required. Fixes 2021-11-22 10:10:18 -05:00
Dessalines
209829e1f3
Merge pull request from LemmyNet/replace-activitystreams-lib
Replace activitystreams crate with activitystreams-kinds
2021-11-22 08:47:46 -05:00
afccd5cf69 Replace activitystreams crate with activitystreams-kinds 2021-11-22 14:28:57 +01:00
88e81dce6b
Merge pull request from LemmyNet/fix_login
Fix login ilike bug. Fixes 
2021-11-22 13:05:57 +00:00