Nutomic
7ba1d98915
Prevent random test failure ( #4184 )
2023-11-21 10:08:19 -05:00
Nutomic
49377c195e
Fix deleted posts so they can only be seen by creator ( #4182 )
2023-11-21 08:59:47 -05:00
dullbananas
30f7135f32
Use rust 1.74.0 in CI and move clippy lints to Cargo.toml ( #4170 )
...
* ci rust 1.74.0
* do it
* Update .woodpecker.yml
* Update Cargo.toml
* Update lint.sh
* Update lib.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-21 08:51:22 -05:00
Nutomic
62357f4444
Fix banning of remote user ( fixes #4169 ) ( #4171 )
2023-11-21 08:44:55 -05:00
Dessalines
82b30b5467
Adding Selectable and diesel postgres backend check. ( #4175 )
2023-11-21 08:42:28 -05:00
cetra3
1c03a86c17
Upgrade activitypub to `0.5.0-beta.5` ( #4179 )
...
* Remove anyhow test
* Update lock
* Fix lints hopefully!
2023-11-21 10:26:12 +01:00
Nutomic
f786df151f
Include instance blocks in settings export ( #4173 )
2023-11-17 21:59:15 -05:00
Nutomic
25450ea090
Fix following local communities stuck on pending ( fixes #4160 ) ( #4161 )
...
* Fix following local communities stuck on pending (fixes #4160 )
* fmt
* remove import
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-11-17 04:55:26 -05:00
İsmail Karslı
2070381e81
Add upload_timeout to PictrsConfig ( #4159 )
...
* Add upload timeout to PictrsConfig
* Bad space 🤔
* Update PictrsConfig upload timeout to include units.
2023-11-17 04:01:32 -05:00
Dessalines
7cb20200d8
Version 0.19.0-rc.5
2023-11-16 23:30:09 -05:00
Nutomic
fc56d0aa05
Use result instead of unwrap in apub tests ( #4168 )
2023-11-16 22:51:33 -05:00
SleeplessOne1917
e573010202
Fix report count endpoint error ( #4167 )
2023-11-16 08:50:15 -05:00
Nutomic
a00313e680
Merge `/site_inbox` into `/inbox`, remove unique constraint for inboxes ( #4138 )
...
* Merge /site_inbox into /inbox (fixes #4137 )
Get rid of different inboxes, only use /inbox
Remove shared_inbox_url db columns
add code migration
move to db migration, fixes
machete
fix sql
drop inbox url unique constraints
Dont create auth cookie in backend (#4136 )
dont change individual inboxes to shared inbox
Dont send comment reply to user who has community blocked. Fixes #3684 (#4096 )
* Dont send comment reply to user who has community blocked. Fixes #3684
* Adding source instance block check.
* Adding api test.
* Addressing PR comments.
* move site inbox rewrite to db
* fix test
* clippy
* clippy 2
* fix test
2023-11-16 14:22:40 +01:00
Dessalines
e2bf2ce530
Removing show_new_post_notifs. ( #4158 )
2023-11-15 10:20:01 +01:00
Dessalines
28c30cc502
Adding skip_serializing_none to federation state. ( #4152 )
2023-11-14 08:20:44 -05:00
Nutomic
1d23df37d8
Rename cache_remote_images setting to cache_external_link_previews (ref #4035 ) ( #4148 )
2023-11-13 09:19:09 -05:00
dullbananas
8e2cbc9a0f
Remove id column and use different primary key on some tables ( #4093 )
...
* post_saved
* fmt
* remove unique and not null
* put person_id first in primary key and remove index
* use post_saved.find
* change captcha_answer
* remove removal of not null
* comment_aggregates
* comment_like
* comment_saved
* aggregates
* remove "\"
* deduplicate site_aggregates
* person_post_aggregates
* community_moderator
* community_block
* community_person_ban
* custom_emoji_keyword
* federation allow/block list
* federation_queue_state
* instance_block
* local_site_rate_limit, local_user_language, login_token
* person_ban, person_block, person_follower, post_like, post_read, received_activity
* community_follower, community_language, site_language
* fmt
* image_upload
* remove unused newtypes
* remove more indexes
* use .find
* merge
* fix site_aggregates_site function
* fmt
* Primary keys dess (#17 )
* Also order reports by oldest first (ref #4123 ) (#4129 )
* Support signed fetch for federation (fixes #868 ) (#4125 )
* Support signed fetch for federation (fixes #868 )
* taplo
* add federation queue state to get_federated_instances api (#4104 )
* add federation queue state to get_federated_instances api
* feature gate
* move retry sleep function
* move stuff around
* Add UI setting for collapsing bot comments. Fixes #3838 (#4098 )
* Add UI setting for collapsing bot comments. Fixes #3838
* Fixing clippy check.
* Only keep sent and received activities for 7 days (fixes #4113 , fixes #4110 ) (#4131 )
* Only check auth secure on release mode. (#4127 )
* Only check auth secure on release mode.
* Fixing wrong js-client.
* Adding is_debug_mode var.
* Fixing the desktop image on the README. (#4135 )
* Delete dupes and add possibly missing unique constraint on person_aggregates.
* Fixing clippy lints.
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
* fmt
* Update community_block.rs
* Update instance_block.rs
* Update person_block.rs
* Update person_block.rs
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2023-11-13 08:14:07 -05:00
SleeplessOne1917
1dc6c60760
Make import and export settings endpoints reachable ( #4143 )
...
* Make import and export settings endpoints reachable
* Preserve original routes
2023-11-13 08:08:07 -05:00
Dessalines
e00b0c9da2
Dont send comment reply to user who has community blocked. Fixes #3684 ( #4096 )
...
* Dont send comment reply to user who has community blocked. Fixes #3684
* Adding source instance block check.
* Adding api test.
* Addressing PR comments.
2023-11-09 12:03:25 +01:00
Felix Ableitner
bf6b0a50a4
clippy
2023-11-09 11:59:08 +01:00
Nutomic
aaaf17486d
Dont create auth cookie in backend ( #4136 )
2023-11-08 07:55:09 -05:00
Felix Ableitner
289c55de01
support custom emoji
2023-11-08 11:20:18 +01:00
Felix Ableitner
6257469e51
Merge branch 'main' into markdown-link-rule
2023-11-07 12:01:27 +01:00
Dessalines
98ed0e51cc
Only check auth secure on release mode. ( #4127 )
...
* Only check auth secure on release mode.
* Fixing wrong js-client.
* Adding is_debug_mode var.
2023-11-07 11:03:13 +01:00
Dessalines
97a4fb9a72
Add UI setting for collapsing bot comments. Fixes #3838 ( #4098 )
...
* Add UI setting for collapsing bot comments. Fixes #3838
* Fixing clippy check.
2023-11-06 16:09:12 -05:00
phiresky
b9b65c9c18
add federation queue state to get_federated_instances api ( #4104 )
...
* add federation queue state to get_federated_instances api
* feature gate
* move retry sleep function
* move stuff around
2023-11-06 16:07:04 -05:00
Nutomic
8c85f35b19
Support signed fetch for federation ( fixes #868 ) ( #4125 )
...
* Support signed fetch for federation (fixes #868 )
* taplo
2023-11-06 16:02:01 -05:00
Felix Ableitner
a5dc167b10
invert
2023-11-06 13:12:53 +01:00
Felix Ableitner
abe3ab2809
machete
2023-11-06 13:03:59 +01:00
Felix Ableitner
d6b3d82300
change setting again
2023-11-06 12:55:12 +01:00
Felix Ableitner
66229ab902
Merge branch 'main' into markdown-link-rule
2023-11-06 12:45:26 +01:00
Felix Ableitner
ecd8e3b11b
federate post url as image depending on mime type
2023-11-06 12:35:01 +01:00
Nutomic
cf788334aa
Also order reports by oldest first (ref #4123 ) ( #4129 )
2023-11-06 05:29:30 -05:00
Dessalines
adef3479c0
Version 0.19.0-rc.4
2023-11-03 10:02:30 -04:00
Dessalines
eeec56c22d
Adding creator_is_moderator to CommentReplyView and PersonMentionView. ( #4126 )
2023-11-03 14:41:00 +01:00
Felix Ableitner
706841950d
add setting disable_external_link_previews
2023-11-03 11:43:04 +01:00
Nutomic
1e59e7ab47
Show oldest registration applications first (ref #4122 ) ( #4123 )
...
* Show oldest registration applications first (ref #4122 )
* fix tests
2023-11-02 07:38:46 -04:00
Nutomic
df53d2a0e8
Change logout endpoint to return SuccessResponse ( #4121 )
2023-10-31 08:41:52 -04:00
Nutomic
9007d49324
Remove unused deps ( #4111 )
...
* Remove unused deps
* Adding cargo-machete to woodpecker.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-31 11:11:12 +01:00
Felix Ableitner
7fbfa48590
fix tests
2023-10-30 11:58:44 +01:00
Felix Ableitner
c2a763d6fb
get rid of cache_remote_thumbnails setting, instead automatically
...
take thumbnail from federation data if available.
2023-10-30 10:58:31 +01:00
Felix Ableitner
ed3e2e0d8c
should be media_type
2023-10-27 16:48:46 +02:00
Felix Ableitner
97697aa413
store post url content type in db
2023-10-27 16:42:43 +02:00
Felix Ableitner
5507d2d680
include url content type when sending post over apub ( fixes #2611 )
2023-10-27 16:24:47 +02:00
Felix Ableitner
c8c355dbe2
more cleanup ( fixes #2611 )
2023-10-27 16:20:44 +02:00
Felix Ableitner
bf205399e5
cleanup request.rs file
2023-10-27 12:33:03 +02:00
Felix Ableitner
95025adaca
testing
2023-10-26 13:25:47 +02:00
Felix Ableitner
9b40d74cce
Merge branch 'main' into markdown-link-rule
2023-10-26 12:48:57 +02:00
Felix Ableitner
45f5448ece
proxy images through pictrs
2023-10-26 12:39:00 +02:00
Felix Ableitner
98b5746472
add tests
2023-10-26 12:32:38 +02:00
Felix Ableitner
388eb42b99
undo post.url rewriting, move http route definition
2023-10-26 11:38:44 +02:00
Felix Ableitner
986913d250
add config option
2023-10-26 10:52:24 +02:00
Nutomic
08739e2925
Move usage of env::var to lemmy_utils, simplify db init (ref #4095 ) ( #4108 )
2023-10-25 11:34:38 -04:00
Dessalines
1b751a8cac
Adding cors_origin to settings. Fixes #3665 ( #4095 )
...
* Adding cors_origin to settings. Fixes #3665
* Fix result to option.
* Forgot to update config defaults.
* Setting a cors origin doku default.
* Adding comments for CORS.
2023-10-25 16:46:34 +02:00
Dessalines
64b00ee850
Dont allow bots to vote. Fixes #3940 ( #4100 )
...
* Dont allow bots to vote. Fixes #3940
* Removing pointless function.
2023-10-25 10:14:12 -04:00
Nutomic
568233b062
Resolve federated objects from other instances via redirect ( fixes #3129 ) ( #4073 )
...
* Resolve federated objects from other instances via redirect (fixes #3129 )
* restore domain check using library change
* add test case, update apub lib
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-25 07:14:59 -04:00
Felix Ableitner
f057abff71
Merge branch 'main' into markdown-link-rule
2023-10-25 12:57:24 +02:00
Nutomic
45bed71c36
Include prometheus in default build, remove build feature ( fixes #3558 ) ( #4071 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-25 06:54:58 -04:00
Felix Ableitner
aa49a1b173
proxy links received over federation
2023-10-25 12:35:22 +02:00
Dessalines
766ca99fd5
Hide private messages from blocked users. ( #4102 )
...
- Also fixes the unread count calls for CommentReply and PrivateMessage.
- Fixes #3629
2023-10-25 12:01:40 +02:00
Dessalines
bd9739b5b7
Upgrading deps. ( #4103 )
2023-10-25 05:32:21 -04:00
Dessalines
0b41ddca58
Fix issue with sending private messages to yourself. Fixes #3912 ( #4099 )
...
* Fix issue with sending private messages to yourself. Fixes #3912
* Fix clippy.
2023-10-25 05:09:10 -04:00
Dessalines
c0aee244e7
Hide public rss items for private instance. Fixes #3785 ( #4097 )
2023-10-25 10:41:52 +02:00
Dessalines
221365bc9a
Fix bug when leaving admin team, setting accepted application as true… ( #4090 )
...
* Fix bug when leaving admin team, setting accepted application as true. Fixes #3422
* Addressing PR comments.
2023-10-24 17:30:47 -04:00
Dessalines
2df21b9d83
Dont serialize karma. #3393 ( #4089 )
2023-10-24 17:26:09 -04:00
Nutomic
d55bd2f2bc
Allow Arabic and Cyrillic usernames/community names ( fixes #1764 ) ( #4083 )
...
* Allow Arabic and Cyrillic usernames/community names (fixes #1764 )
* update comment
2023-10-24 16:25:52 -04:00
HackerNCoder
722d9efc13
Use starts_with for forbidden unicode ( Fix #3888 ) ( #4079 )
...
* Use starts_with for forbidden unicode (Fix #3888 )
* Require 3 visible chars in display name
* Run cargo fmt and scripts/lint
* Undo invisibly_starts_with_at
* Remove 3 min chars.count() check for display name
2023-10-24 16:57:40 +02:00
Felix Ableitner
ae96d863a4
rewrite link fields for avatar, banner etc
2023-10-24 16:53:53 +02:00
Dessalines
09a67472e7
Allow torrent magnet links as post urls. Fixes #3916 ( #4092 )
2023-10-24 16:48:00 +02:00
Dessalines
053dcf8c10
Fixing matrix id regex. Fixes #3431 ( #4091 )
2023-10-24 16:47:02 +02:00
Felix Ableitner
ef79422632
add db table to validate proxied links
2023-10-24 15:56:04 +02:00
Dessalines
5d48ee3dc8
Add creator_is_moderator to Comment and PostViews. Fixes #3347 ( #4087 )
...
* Add creator_is_moderator to Comment and PostViews. Fixes #3347
* Fixing community_moderator join.
* Addressing PR comments.
2023-10-24 08:37:03 -04:00
Felix Ableitner
89976b83f6
clippy
2023-10-24 13:44:03 +02:00
Felix Ableitner
aaf3833d12
perform markdown image processing in api/apub receivers
2023-10-24 13:27:58 +02:00
Dessalines
5540257b36
Fixing problem with SaveUserSettings, when either the Person or Local… ( #4077 )
...
* Fixing problem with SaveUserSettings, when either the Person or LocalUser update is null.
- Fixes #4076
- Also upgrading api_test deps
* Move function into test.
2023-10-24 11:20:23 +02:00
Dessalines
1596aee724
Adding /version route. Fixes #2914 ( #4059 )
...
* Adding /version route. Fixes #2914
* Using a simple version string.
* Use nginx rewriting to solve version.
* Forgot to remove version.
* Using an actix redirect.
2023-10-24 10:49:52 +02:00
Felix Ableitner
540560b555
add comment
2023-10-24 10:36:54 +02:00
Dessalines
5bfa4e9358
Make sure my_vote is consistently missing if not voted. Fixes #3197 ( #4075 )
...
* Make sure my_vote is consistently missing if not voted. Fixes #3197
* Fix clippy.
* Fix tests.
2023-10-23 12:40:29 -04:00
Nutomic
6235ff45b5
Return status 401 on logout with invalid auth ( fixes #4081 ) ( #4082 )
...
* Return status 401 on logout with invalid auth (fixes #4081 )
* format
2023-10-23 12:17:26 -04:00
Felix Ableitner
fc66badd85
rewrite markdown image links working
2023-10-23 16:46:26 +02:00
Felix Ableitner
650e3a71d7
Merge branch 'main' into markdown-link-rule
2023-10-23 15:40:04 +02:00
Nutomic
ec0a707110
Avoid using proxy for pictrs requests ( fixes #3489 ) ( #4072 )
...
* Avoid using proxy for pictrs requests (fixes #3489 )
* fmt
2023-10-20 11:09:34 -04:00
Nutomic
dfc74835b1
Hide deleted user accounts, add tests for PersonView ( fixes #3811 ) ( #4070 )
...
* Hide deleted user accounts, add tests for PersonView (fixes #3811 )
* clippy
2023-10-20 10:01:29 -04:00
Dessalines
6bcb12b14f
Version 0.19.0-rc.3
2023-10-19 20:34:48 -04:00
Dessalines
236c7e24fd
Making mark post read fields optional. ( #4055 )
...
* Making mark post read fields optional.
* Remove unecessary &
* Fix clippy.
* Addressing PR comments.
* serde(default)
* Revert "serde(default)"
This reverts commit d56afd3075
.
---------
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-10-19 20:16:23 -04:00
Dessalines
cae25486e4
Adding ts-rs directives for login_token. ( #4063 )
...
* Adding ts-rs directives for login_token.
* Fixing ts-rs derive.
2023-10-19 20:16:12 -04:00
Dessalines
c1db65c6e5
Fix up convert more responses to SuccessResponse ( #4066 )
...
* Revert "Convert more responses to SuccessResponse. Fixes #2860 (#4058 )"
This reverts commit 8deb4e5752
.
* Removing purgeitem and deletecustomemoji response.
* Adding back in utils building.
2023-10-19 20:15:55 -04:00
Dessalines
8deb4e5752
Convert more responses to SuccessResponse. Fixes #2860 ( #4058 )
...
* Convert more responses to SuccessResponse. Fixes #2860
* Upgrading lemmy-js-client.
2023-10-19 13:21:05 -04:00
Nutomic
9ef28eb53b
Remove unused static ( #4061 )
2023-10-19 11:57:39 -04:00
dullbananas
a14657d124
Refactor rate limiter and improve rate limit bucket cleanup ( #3937 )
...
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update mod.rs
* Update scheduled_tasks.rs
* Shrink `RateLimitBucket`
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update mod.rs
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* Update rate_limiter.rs
* rerun ci
* Update rate_limiter.rs
* Undo changes to fields
* Manually undo changes to RateLimitBucket fields
* fmt
* Bucket cleanup loop in rate_limit/mod.rs
* Remove rate limit bucket cleanup from scheduled_tasks.rs
* Remove ;
* Remove UNINITIALIZED_TOKEN_AMOUNT
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* fmt
* Update rate_limiter.rs
* stuff
* MapLevel trait
* fix merge
* Prevent negative numbers in buckets
* Clean up MapLevel::check
* MapLevel::remove_full_buckets
* stuff
* Use remove_full_buckets to avoid allocations
* stuff
* remove tx
* Remove RateLimitConfig
* Rename settings_updated_channel to rate_limit_cell
* Remove global rate limit cell
* impl Default for RateLimitCell
* bucket_configs doc comment to explain EnumMap
* improve test_rate_limiter
* rename default to with_test_config
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Nutomic <me@nutomic.com>
2023-10-19 15:31:51 +02:00
Nutomic
6d27bfed08
Handle invalid ban expires values ( fixes #4045 ) ( #4046 )
...
* Handle invalid ban expires values (fixes #4045 )
* Adding a few missing expire time checks. Fixing up time conversions. (#4051 )
* Adding a few missing expire time checks. Fixing up time conversions.
* Increase settings export wait time.
* get rid of RemoveCommunity.expires
* fmt
* tests
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 13:25:35 -04:00
Nutomic
d827af725a
List distinguished comments first ( fixes #3843 ) ( #4050 )
...
* List distinguished comments first (fixes #3843 )
* then_order_by
* Fixing assert.
* move line
* then
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-17 13:22:50 -04:00
Nutomic
3a19af5215
Allow marking multiple posts as read in single api call ( fixes #3963 ) ( #4048 )
...
* Allow marking multiple posts as read in single api call (fixes #3963 )
* cleanup
* limit array length
* fix test
* review
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 12:35:51 -04:00
Nutomic
3f62135083
Add validate_auth api endpoint ( fixes #3702 ) ( #4049 )
...
* Add validate_auth api endpoint (fixes #3702 )
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 11:25:48 -04:00
SleeplessOne1917
cf1c32d2ab
Enable animated avatars setting ( #4040 )
...
* feat: Add user setting for toggling avatar gif animations
* Add forgotten post listing mode option to settings form
* Fix compilation error
* Fix formatting
* Change name of column to be more general purpose
* Fix sql format.
* Fix comments
* Running format.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-17 10:52:34 -04:00
Nutomic
56322c75f0
Read community follower count from home instance ( fixes #1440 ) ( #4013 )
...
* Read community follower count from home instance (fixes #1440 )
* fmt
* prettier
* fix tests
* fmt
* rename fn
* fmt
* Run prettier
* increase timeout
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-17 10:34:38 -04:00
Nutomic
332e698336
Cleanup public api ( #4047 )
...
* Convert PersonSortType to purely internal
* Remove hot rank and other db optimizations from public api
2023-10-16 19:37:28 -04:00
Nutomic
6cfbb8fc3b
Remove empty API responses ( #3993 )
...
* Remove empty API responses
* also remove change password response
* fix invalidate
* Run clippy.
* Fixing api_test lints.
---------
Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-16 12:36:53 -04:00
Nutomic
256ee61908
Ignore activities in remote communities without local followers ( #4006 )
...
* Ignore activities in remote communities without local followers (fixes #3568 )
* x
* comments
* prettier
* fix api test
* fix test
* cleanup
* fix remaining test
* clippy
* decrease delay
2023-10-16 06:03:49 -04:00
Dessalines
3be56ef2e0
Trying to fix export ci, try 1. ( #4038 )
2023-10-16 12:01:59 +02:00