Dessalines
d0e25e8390
Remove published and updated columns.
2024-03-04 09:30:21 -05:00
Dessalines
8f7fd945c5
Merge remote-tracking branch 'origin/main' into vote_display_mode
2024-03-04 09:23:11 -05:00
Nutomic
3c358e5b0b
Mods and admins can comment in locked posts ( fixes #4116 ) ( #4488 )
...
* Mods and admins can comment in locked posts (fixes #4116 )
* fmt
* fix
* fix test
2024-03-04 09:15:21 -05:00
Dessalines
eb1245bceb
When using saved_only
, sort posts / comments by the saved publish time, not the item creation time ( #4479 )
...
* Work on saved selection.
* Using single value for join.
* Removing unecessary check.
* Remove saved_only pointless block.
2024-03-04 14:19:51 +01:00
SleeplessOne1917
d56279ac44
Merge branch 'main' into vote_display_mode
2024-03-01 21:51:11 +00:00
Dessalines
7eec8714d7
When site banning a federated user, also remove their content from our local communities. ( #4464 )
...
* When banning a federated user, also remove their content from our local
communities.
- This works by:
- Before a site ban, find all posts and comments to local communities
- Send a federated community ban action for each local comm.
- This also removes their content in the apub receive code.
- Adding back in federated community ban api tests.
- Adding in two more api tests for site bans.
- Fixes #4118
* Add local community ban, and nonlocal person check.
* Ignoring errors.
* Move local check into function.
* Addressing PR comments 2
2024-03-01 13:45:06 -05:00
Nutomic
08b01a377d
Support listing type for person ( fixes #4146 ) ( #4487 )
...
* Support listing type for person (fixes #4146 )
* add test
2024-03-01 11:53:20 -05:00
Nutomic
c5e54a318a
Store password reset token after email successfully sent ( fixes #3757 ) ( #4489 )
2024-03-01 11:32:59 -05:00
Nutomic
a7fa075e8c
Make logs less verbose ( fixes #3627 ) ( #4490 )
2024-03-01 11:32:13 -05:00
Nutomic
c895e57086
Remove unneeded error "last successful id is higher than latest id" ( fixes #4363 ) ( #4486 )
2024-03-01 11:31:37 -05:00
Dessalines
e1b26897be
Add nlnet grant line in readme. ( #4484 )
2024-03-01 11:22:53 -05:00
Dessalines
fda0fbc1c7
Fixing fmt.
2024-02-29 13:46:43 -05:00
Dessalines
b2c12ad3eb
Extracting vote_display_mode to another table.
2024-02-29 13:41:00 -05:00
Dessalines
3b9e7f10b8
Merge branch 'main' into vote_display_mode
2024-02-29 12:12:20 -05:00
Dessalines
87b577467b
Adding ability to hide posts. ( #4480 )
...
* Adding ability to hide posts.
- Adds an post/hide API route.
- Adds a `show_hidden` (default false) to `GetPosts`.
- Adds a `hidden` field to `PostView`.
- Removes the single `post_id` from MarkPostAsRead.
- Fixes #1403
* Add a check to make sure hidden field is true.
* Fixing test.
* Add back semicolon
2024-02-29 10:42:34 -05:00
Nutomic
6d815db375
Require verified email to reset password ( #4482 )
2024-02-29 09:12:45 -05:00
Nutomic
328a48c9f5
Remove error-type feature from lemmy-utils ( #4474 )
...
* Remove error-type feature from lemmy-utils
* fixes
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-02-27 11:13:52 -05:00
Dessalines
730035f326
Adding upvote and downvote mode.
2024-02-27 10:00:29 -05:00
Dessalines
b2add170b3
Merge remote-tracking branch 'origin/main' into vote_display_mode
2024-02-27 09:57:35 -05:00
Nutomic
ab4deaa49a
Add api test for synchronizing featured posts (ref #4475 ) ( #4476 )
...
* Correctly synchronize collection of community featured posts (fixes #3867 )
* Add api test for synchronizing featured posts (ref #4475 )
* prettier
2024-02-27 09:11:41 -05:00
Dessalines
e01ea32928
Fix doctype check issue for metadata fetching. Fixes #4468 ( #4472 )
...
* Fix doctype check issue for metadata fetching. Fixes #4468
* Change warn to info.
2024-02-26 10:24:09 -05:00
Dessalines
f3d48f2c2c
Adding some recommended fixes from nightly clippy. ( #4473 )
2024-02-26 09:47:10 -05:00
Nutomic
7316dd281a
Correctly synchronize collection of community featured posts ( fixes #3867 ) ( #4475 )
2024-02-26 09:45:23 -05:00
Richard Schwab
80bfd23b4d
Ensure rustfmt is installed in cargo fmt CI job ( #4466 )
2024-02-26 11:22:22 +01:00
SleeplessOne1917
f42420809b
Expose LemmyErrorType in lemmy_api_common ( #4439 )
...
* Expose LemmyErrorType in lemmy_api_common
* Make conditional compilation gates for utils
* Make it so api_common doesn't pull in unnecessary deps
* Make error type non exhaustive
* Fix formatting
* Format toml
* Add some convenience derives to LemmyError
* Simplify features
* Fix CI compile error
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-24 19:54:27 -05:00
Dessalines
2a60d913cc
Adding ScoreAndDownvote display mode.
2024-02-24 18:20:16 -05:00
Dessalines
04faedd458
Merge remote-tracking branch 'origin/main' into vote_display_mode
2024-02-24 18:17:12 -05:00
dullbananas
f56b84615c
Move DbUrl trait impls to newtypes.rs ( #4463 )
...
* Move DbUrl trait impls to newtypes.rs
* Update utils.rs
2024-02-19 12:41:28 -05:00
dullbananas
d79502dff3
Escape backslashes in fuzzy_search ( #4462 )
...
* Escape backslashes in fuzzy_search
* Update utils.rs
2024-02-18 09:12:56 -05:00
dullbananas
ae62ef2b7e
Ignore expired bans in CommentReportView::read, just like in CommentReportQuery::list ( #4457 )
...
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update comment_report_view.rs
* Update comment_report_view.rs
2024-02-18 09:12:12 -05:00
SleeplessOne1917
39345466da
Make it so the signed in user can see if they're banned from a community ( #4458 )
...
* Make it so the signed in user can see if they're banned from a community
* Use more appropriate field name
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-18 09:09:46 -05:00
Dessalines
5d551e6da5
Adding an instance-level default_sort_type ( #4454 )
...
* Adding an instance-level default_sort_type
- Fixes #3796
* Fixing comment.
* Put user sort before site sort.
2024-02-16 09:36:46 -05:00
Nutomic
ffcf415cac
Dont log db url on connection error ( fixes #4453 ) ( #4456 )
...
* Dont log db url on connection error (fixes #4453 )
* remove format
2024-02-16 08:50:06 -05:00
Nutomic
86b44c2a4d
Add site.content_warning, local_site.default_post_listing_mode ( #4393 )
...
* Include local_site.content_warning setting for showing nsfw by default
* Add community setting `only_followers_can_vote`
* clippy
* add auto_expand_images site setting
* cleanup
* add missing api params
* postquery/communityquery changes
* clippy
* change error
* replace auto_expand_images with default_site_post_listing_mode
* change post/community query params
* get rid of only_followers_can_vote
* machete
* fix
* clippy
* revert remaining vote changes
* remove dead code
* remove unused var
* fmt
2024-02-16 07:24:35 -05:00
Dessalines
a3bf2f1cf1
Auto resolve reports on removing a comment or post. Fixes #4390 ( #4402 )
...
* Automatically resolve report when post/comment is removed (#3850 )
* Automatically resolve report when post/comment is removed
* also handle apub removes
* Removing auto-resolve report triggers.
* Dont allow creating reports for deleted / removed items.
* Running pgformat.
* Fixing test.
* Addressing PR comments.
* Forgot comment report.
---------
Co-authored-by: Nutomic <me@nutomic.com>
2024-02-15 08:52:04 -05:00
Dessalines
890565ca14
Deleting denied local_users older than a week. Fixes #4434 ( #4448 )
...
* Deleting denied local_users older than a week. Fixes #4434
* Addressing PR comments.
* Upping rust to 1.76
* Delete the person rows also.
2024-02-15 07:50:53 -05:00
Dessalines
3f7cc07b02
Adding ability to specify a custom post thumbnail. ( #4425 )
...
* Adding ability to specify a custom post thumbnail.
- Context: #4204
* Fixing ts-rs serialization.
* Fixing conversion, adding checks.
* Proxying custom_thumbnail. Fixed logic for update.
* Only generate metadata thumbnail is theres no custom thumbnail.
2024-02-15 10:42:23 +01:00
Dessalines
33989f5518
Blocking an instance also hides private messages from their users. ( #4447 )
...
* Blocking an instance also hides private messages from their users.
- Fixes #4444
* Separating private message tests.
2024-02-14 10:49:55 +01:00
Dessalines
9d88b62d4e
Changing HideDownvotes to Score.
2024-02-13 13:29:23 -05:00
Lcchy
8a6a86c1bb
Add support for RSS media enclosures in feeds ( #4442 )
...
* Add support for RSS media enclosures in feeds
* Use post.url_content_type
2024-02-13 10:46:46 +01:00
Dessalines
a628af6256
Add a vote_display_mode local_user setting.
...
- Fixes #4449
2024-02-12 16:48:39 -05:00
dullbananas
677d54ae57
Allow better query plans ( #4424 )
...
* Update utils.rs
* Create bind_if_some.rs
* limit connection age
* Delete crates/db_schema/src/utils/bind_if_some.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
* Update utils.rs
2024-02-12 16:44:29 +01:00
SleeplessOne1917
300869d397
Make request models derive PartialEq, Eq, and Hash ( #4443 )
...
* Make request models derive PartialEq, Eq, and Hash
* Fix clippy error
---------
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-11 00:32:14 -05:00
Dessalines
609de3e9e2
Remove front end size. Fixes #4437 ( #4440 )
2024-02-09 10:42:12 +01:00
Elara
3c5b1ac6dd
Use the Accept-Language header to set new users' language ( #4435 )
...
* Use the Accept-Language header to set new users' language
* Implement clippy suggestions
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-02-08 10:53:03 +01:00
dullbananas
f631f43024
Run analyze in db_perf ( #4420 )
2024-02-07 22:37:44 -05:00
Dessalines
9367cbdb00
Upgrading from postgres 15 -> 16-alpine. ( #4426 )
...
- Includes an upgrade script.
- Fixes #4406
2024-02-07 11:21:02 +01:00
Dessalines
3647a46e86
Remove ansible tagging. ( #4417 )
...
- See https://github.com/LemmyNet/lemmy-ansible/issues/215
2024-01-31 10:46:13 +01:00
Elara
328d48ef7e
Remove invalid XML characters from RSS feeds ( #4416 )
...
* Remove all characters that are disallowed by XML
* Combine contiguous unicode ranges into one range
2024-01-30 15:55:45 +01:00
Nutomic
a09027c4c0
Silence warnings from ts-rs ( #4415 )
...
* Silence warnings from ts-rs
https://github.com/Aleph-Alpha/ts-rs/issues/108
* fmt
2024-01-29 09:22:53 -05:00