Freakazoid182
ee7b35a04a
Add person name to PersonIsBannedFromSite error ( #3786 ) ( #3855 )
...
* Add person name to PersonIsBannedFromSite error (#3786 )
* Log PersonId instead of Person name (#3850 )
* Log actor_id for PersonIsBannedFromSite (#3850 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
2023-08-16 11:36:58 +02:00
Freakazoid182
c8063f3267
Replace Option<bool> with bool for PostQuery and CommentQuery ( #3819 ) ( #3857 )
...
* Replace Option<bool> with bool for PostQuery and CommentQuery (#3819 )
* Replace Option<bool> from all list queries (#3819 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
2023-08-11 11:13:14 +02:00
Maarten Vercruysse
9b710a2ed3
Update .woodpecker.yml use steps instead ( #3858 )
2023-08-10 08:15:30 -04:00
Dessalines
654bc513ea
Fixing woodpecker env var. ( #3854 )
2023-08-09 11:14:09 +02:00
Dessalines
29869b132c
Adding 0.18.4 Release notes. ( #3853 )
2023-08-09 11:08:32 +02:00
f7f6766650
Automatically resolve report when post/comment is removed ( #3850 )
...
* Automatically resolve report when post/comment is removed
* also handle apub removes
2023-08-08 11:19:55 -04:00
ae438e148e
Speedup CI ( #3852 )
...
* Speedup CI
* run tests in parallel
* restore cp
* main push
* no self update
* parallel format
2023-08-08 10:35:03 -04:00
33b2d67be6
Reorder woodpecker config to avoid ci failures ( #3851 )
2023-08-08 13:09:27 +02:00
dullbananas
969f8b2ce9
Replace TypedBuilder with Default in update forms ( #3814 )
...
* Update comment.rs
* Update community.rs
* Update local_site.rs
* Update local_site_rate_limit.rs
* Update local_user.rs
* Update person.rs
* Update comment.rs
* Update community.rs
* Update local_site.rs
* Update local_site_rate_limit.rs
* Update local_user.rs
* Update post.rs
* Update private_message.rs
* Update site.rs
* Update post.rs
* Update person.rs
* Update private_message.rs
* Update comment.rs
* Update create.rs
* Update leave_admin.rs
* Update update.rs
* Update remove.rs
* Update add_admin.rs
* Update verify_email.rs
* Update mod.rs
* Update mod.rs
* Update undo_delete.rs
* Update undo_delete.rs
* Update utils.rs
* Update feature.rs
* Update delete.rs
* Update lock.rs
* Update create.rs
* Update approve.rs
* Update update.rs
* Update lock_page.rs
* Update block_user.rs
* Update delete.rs
* Update undo_block_user.rs
* Update collection_remove.rs
* Update post.rs
* Update hide.rs
* Update person.rs
* Update remove.rs
* Update post_view.rs
* Update create.rs
* Update remove.rs
* Update collection_add.rs
* Update community.rs
* Update update.rs
* Update post_aggregates.rs
* Update update.rs
* Update comment.rs
* Update code_migrations.rs
* Update registration_application_view.rs
* Update update.rs
* Update ban_person.rs
* Update community.rs
* Update delete.rs
* Update delete.rs
* Update delete.rs
* Update person_aggregates.rs
* Update save_settings.rs
* Update distinguish.rs
* Update mark_read.rs
* Update site_aggregates.rs
* Update create.rs
* Fix
* rerun ci
* Update comment.rs
* rerun ci
* Update create.rs
* Update create.rs
* Update post_view.rs
* rerun ci
* Update undo_delete.rs
* rerun ci
2023-08-08 11:41:41 +02:00
dullbananas
a47b12bbde
Reduce amount of columns selected ( #3755 )
...
* PostAggregatesNotInPost
* CommentAggregatesNotInComment
* CommunityPersonBanAdditionalInfo (partial)
* Revert "CommunityPersonBanAdditionalInfo (partial)"
This reverts commit 158f7f0cd9a07392fb1f457ac43c8d7c57e4190d.
* Replace some nullable parts of selection with id::nullable().is_not_null()
* CommunityFollower::select_subscribed_type
* WithoutId
* Add WithoutId derives
* Update Cargo.toml
* rerun ci
* Fix syntatx errors
* rerun ci
* Add missing "|" in private_message_report_view.rs
* rerun ci
* cargo fmt
* rerun ci
* Only derive WithoutId for Community with "full" feature
* rerun ci
* Fix attribute filtering in WithoutId macro
* rerun ci
* Update without_id.rs
* rerun ci
* Update without_id.rs
* rerun ci
* Fix errors
* rerun ci
* cargo fmt
* Fix errors
* rerun ci
* Move WithoutId to lib.rs
* rerun ci
* Remove macro_use for paste
* rerun ci
* Update comment_reply_view.rs
* rerun ci
* Update registration_application_view.rs
* rerun ci
* Revert "Update registration_application_view.rs"
This reverts commit 2e98e4bb8385b4630ed2d1dfdd8da9a35c0126b2.
* Revert "Update comment_reply_view.rs"
This reverts commit 857bf9f5a2413ff0e6e6c95e1157e8ce6bf9c0c3.
* Revert "Remove macro_use for paste"
This reverts commit 13247279ed9090f2d3c5c6525b9611529217d605.
* Revert "Move WithoutId to lib.rs"
This reverts commit 0c23e5213be1366bb64029e2007e97194e126676.
* Revert "Fix errors"
This reverts commit a283d155e5622bba0b6df8b07649fc246df8bb77.
* Revert "cargo fmt"
This reverts commit 36a5210352809b3ca417ec3b869ae4baaca17e16.
* Revert "Fix errors"
This reverts commit c9102c14f466a5d6175732625e74183579ee2be5.
* Revert "Update without_id.rs"
This reverts commit 19adb2fcc805f92f6720a439f3b2c80a2b866938.
* Revert "Update without_id.rs"
This reverts commit e26107a2fe30cc2ec81797830e3a34a1676619e4.
* Revert "Fix attribute filtering in WithoutId macro"
This reverts commit acaa4902b0e7e33205c5d287cd22b83732a1a401.
* Revert "Only derive WithoutId for Community with "full" feature"
This reverts commit de0e9c6fdc3c9344998d9d72e5e361a7f009c829.
* Revert "cargo fmt"
This reverts commit 5e1bd1ce58e997e9431f212fd2ee0283faaf6da3.
* Revert "Add missing "|" in private_message_report_view.rs"
This reverts commit c7ae9f1cd50dfead0fbc363d93692f82274ff870.
* Revert "Fix syntatx errors"
This reverts commit d942f099de8128b5a02fe74f5af43a4453a06350.
* Revert "Update Cargo.toml"
This reverts commit 23cdb6f6d3df6d2db06173f066c117a0c96dd8e1.
* Revert "Add WithoutId derives"
This reverts commit 06006d6ad338e946410962f4276f67fe5096ad5a.
* Revert "WithoutId"
This reverts commit 5e86922b0fd5bf08d114a8eee5d1e10b2ea534ee.
* Revert "CommentAggregatesNotInComment"
This reverts commit 603aede7cecacd246664f7f3f0047202f80d9938.
* Revert "PostAggregatesNotInPost"
This reverts commit 1ee3fcaeab8705e4e0e849ae6b93b45716aa9cc0.
* Restore original position of options.saved_only filter
* rerun ci
* Update post_view.rs
* rerun ci
2023-08-08 11:41:10 +02:00
Piotr Juszczyk
2ad3450004
Allow filtering posts and comments by whether they were liked/disliked - fixes #3401 ( #3523 )
...
* Allow filtering posts and comments by whether they were liked/disliked
* Switch to 2 args - liked_only, disliked_only - taking bools
* Make liked_only and disliked_only Option<bool>
* Fix unrelated is_profile_view compilation error
2023-08-08 11:40:28 +02:00
Alex Lavallee
f9c2ba1cfa
Allow filtering PMs by sender ( #3770 )
...
* Allow filtering PMs by sender
* Fix retreiving own messages when filtering pm creator id
* Add tests
* Undo rename
* Fix PM tests
* Fix formatting for PMs
* Fix PM test formatting
* Rename PM creator_id field
* Fix PM formatting
2023-08-08 11:07:41 +02:00
91c024fd98
Revert "Version 0.18.4-rc.2"
...
This reverts commit 48466b6826
.
2023-08-07 17:12:09 +02:00
48466b6826
Version 0.18.4-rc.2
2023-08-07 17:09:10 +02:00
maxime.io
d81fb987aa
Fix sanitize_html whitespaces ( #3829 )
2023-08-07 14:22:52 +02:00
bed9474cf0
Revert "Attempt to fix CI building wrong commits ( #3830 )"
...
This reverts commit 5e9930bdcc
.
2023-08-07 13:19:07 +02:00
dullbananas
5e9930bdcc
Attempt to fix CI building wrong commits ( #3830 )
...
* Attempt to fix CI building wrong commits
* Update .woodpecker.yml
* Update .woodpecker.yml
2023-08-07 06:40:50 -04:00
Dessalines
57cb5637fc
Fix ordering when doing a comment_parent type list_comments
( #3823 )
...
* Fix ordering when doing a comment_parent type GetPost.
* Fix missing options.
2023-08-07 11:11:07 +02:00
66ac8100d9
Remove unused db view options ( #3787 )
...
* Remove unused db view options
* fix tests
* ci
2023-08-04 11:36:36 -04:00
2bb24c2859
Remove form_id params ( #3812 )
2023-08-04 09:22:43 -04:00
Maarten Vercruysse
da031a4ce2
Update QUESTION.yml, remove UI ( #3807 )
2023-08-03 05:12:21 -04:00
Dessalines
70fae9d68d
Fixing broken SQL migration formatting. ( #3800 )
...
* Fixing SQL format.
* Fixing clippy lints.
* Fixing clippy lint 2.
2023-08-03 11:07:35 +02:00
2d0f77af59
Dont use sha hash for password reset token ( fixes #3491 ) ( #3795 )
2023-08-02 13:02:53 -04:00
27be1efb74
Rewrite remaining federation actions, get rid of PerformCrud trait ( #3794 )
...
* Rewrite ban actions
* Rewrite delete/remove actions
* Rewrite remove/delete community
* Rewrite report actions
* Rewrite feature/lock post
* Rewrite update community actions
* Rewrite remaining federation actions
* Get rid of PerformCrud trait
* clippy
2023-08-02 12:52:41 -04:00
Dessalines
be1389420b
Adding SQL format checking via pg_format
/ pgFormatter ( #3740 )
...
* SQL format checking, 1.
* SQL format checking, 2.
* SQL format checking, 3.
* SQL format checking, 4.
* SQL format checking, 5.
* Running pg_format
* Getting rid of comment.
* Upping pg_format version.
* Using git ls-files for sql format check.
* Fixing sql lints.
* Addressing PR comments.
2023-08-02 12:44:51 -04:00
RocketDerp
b4380cb548
Do not hide read posts when it is a user profile view ( #3791 )
2023-08-02 12:31:28 -04:00
58388f2ce8
Only run slow CI checks for actual code changes (attempt 2) ( #3759 )
...
* Only run slow CI checks for actual code changes (attempt 2)
* use when path include
* change rust
* update
* x
* y
* zsad
* remove println
* fmt
* readme
* Revert "readme"
This reverts commit d58b6ad9731d8c6009d8680d0126d9e9f0af3103.
* ci
* gitmodules
2023-08-02 12:29:21 -04:00
Louis GERARD
7bc64ab91a
Remove follow community traits ( #3737 )
...
* chore(FollowCommunity): remove Perform and Send Activity traits
* chore(FollowCommunity): avoid fetching community and person from db
2023-08-02 11:32:16 +02:00
dullbananas
91834d0d21
Default imprementations for read and delete in Crud trait ( #3707 )
...
* h
* Start doing stuff
* Default impl for Crud::read
* Simplify Crud::read lifetimes
* fmt
* Stuff
* Stuff
* Successfully make default read implementation work
* Restore Person::read
* Clean up default Crud::read and rename 'query2
* Replace filter with find
* Attempt default Crud::create
* Change Crud to Crud<'a> (won't compile)
* Revert "Change Crud to Crud<'a> (won't compile)"
This reverts commit 7ed20f5f713600bd48c85aad0848d8dbaae56503.
* Default Crud::delete
* Remove Crud::delete definitions that match default
* Remove commented Site::read
* Insert trait
* Revert "Insert trait"
This reverts commit 9d780c24035d3a9fb12968d3009a28724046dc3a.
* Use non-borrowed forms
* Revert "Use non-borrowed forms"
This reverts commit d2dd4425634b54ef105aab44f1c37cc10a32491e.
* Revert "Revert "Change Crud to Crud<'a> (won't compile)""
This reverts commit 25a27165a8ef56495e9f605ac15c9924b101d1bf.
* Fix lifetime for everything except Crud::delete
* Fix Crud::delete
* Add comment about futures
* Attempt Crud::create
* Attempt separate CrudBounds
* Revert "Attempt separate CrudBounds"
This reverts commit 1b4ca321c3d2a1d045e2f4c542c593582e9c6d80.
* Try to fix Crud::create
* Move lifetime parameters to associated types
* Revert "Move lifetime parameters to associated types"
This reverts commit af1bc858ce5e1dacddc4bbded2da7e4b7237e237.
* Revert "Try to fix Crud::create"
This reverts commit eec238496c38127cbf3d542b7cfd57ec55622d1f.
* Revert "Revert "Attempt separate CrudBounds""
This reverts commit 1ec33ce5022c58a5ad079ed7f5c220fafe5f0a5f.
* Revert "Attempt separate CrudBounds"
This reverts commit 1b4ca321c3d2a1d045e2f4c542c593582e9c6d80.
* Revert "Attempt Crud::create"
This reverts commit 47e8071b6826f27e2a562680b4948c37dffa68cb.
* Revert "Add comment about futures"
This reverts commit b266b1465393995b3be51d5ba207d5249560884f.
* Revert "Fix Crud::delete"
This reverts commit 3abcce2eec55208993dd9c7c3e51cff83412d15a.
* Revert "Fix lifetime for everything except Crud::delete"
This reverts commit c1ad7a161bbc8495dbfb8b52073f35ae88519da6.
* Revert "Revert "Revert "Change Crud to Crud<'a> (won't compile)"""
This reverts commit 3129cd0fc302f34bc0aad59987b9d0eb1139076c.
* Clean up
* Update site.rs
2023-08-01 10:34:10 -04:00
d82194cfe9
Rewrite some federation actions to remove Perform/SendActivity (ref #3670 ) ( #3758 )
2023-08-01 15:53:36 +02:00
RocketDerp
05a7fced65
Enhanced testing of comments. Validate reply notifications, mentions ( #3686 )
...
* shared.ts first test of getReplies
* comment testing now validates reply notifications and mentions, some code comment cleanup in other functions
* comments revised
* first use of getUnreadCount in testing
* test notification of new comment replies, clarify usage of getReplies
* killall moved earlier in bash script
* api-test jest run does not need directory prefix, make consistent with other jest runs
* do not put my testing system password into script
* fix, killall exits script when no process found
* killall now moved to parent script to release locks before database create
* need to run killall a second time, before database drop
* first use of getReplies getPosts saveUserSettings
* accidental duplication of functions, removed
* try to sync shared library with main
* Nutomic feedback: Better to rename the var instead of putting a comment which can easily get outdated.
* Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. (#3761 )
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
* Fix fetch instance software version from nodeinfo (#3772 )
Fixes #3771
* remove unused code, revert killall change
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: figure-0e <133478007+figure-0e@users.noreply.github.com>
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
Co-authored-by: Denis Dzyubenko <denis@ddenis.info>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-08-01 09:14:40 -04:00
Denis Dzyubenko
55e383ae38
Fix fetch instance software version from nodeinfo ( #3772 )
...
Fixes #3771
2023-08-01 10:55:28 +02:00
figure-0e
6ed2ddf76d
Correct logic to meet join-lemmy requirement, don't have closed signups. Allows Open and Applications. ( #3761 )
...
Co-authored-by: Josh Bernardini <josh.bernardini@cologix.com>
2023-08-01 10:40:42 +02:00
963d04b352
Revert "Only run slow CI checks for actual code changes ( #3750 )"
...
This reverts commit a34e0d477e
.
2023-07-28 22:44:45 +02:00
543bd99900
Update CODEOWNERS ( #3748 )
2023-07-28 11:16:18 -04:00
39752fa096
Delete migrations_testing folder ( #3751 )
...
Its completely unused as far as I can see
2023-07-28 11:14:26 -04:00
e365d48769
Move entry from .rgignore to .gitignore ( #3752 )
...
rg command respects gitignore, and sql dumps should be ignored by
git as well. So theres no reason to have a separate file.
2023-07-28 11:11:18 -04:00
37998b3398
Rewrite some API handlers to remove Perform trait ( #3735 )
...
* Rewrite some API handlers to remove Perform trait
* Convert CreateComment
* ci
2023-07-28 10:39:38 -04:00
Dessalines
db76c5b7ff
Adding 0.18.3 Release notes. ( #3753 )
2023-07-28 16:33:45 +02:00
a34e0d477e
Only run slow CI checks for actual code changes ( #3750 )
...
* Only run slow CI checks for actual code changes
Its a waste of time to compile Rust and run tests when only
something like the readme was changed.
* also make cache restore/rebuild conditional
* remove unused condition
2023-07-28 09:33:23 -04:00
0e6fb08284
Restore markdown quotes after sanitize ( #3708 ) ( #3749 )
2023-07-28 08:23:46 -04:00
dullbananas
9a5a13c734
Use same table join code for both read and list functions ( #3663 )
...
* Try stuff
* Revert "Try stuff"
This reverts commit 3da5f83a8b4928368bf58e0061091c270259a226.
* Revert "Revert "Try stuff""
This reverts commit 178bd43cac8c7674d30d2c285ed47ca0493ad659.
* Revert "Revert "Revert "Try stuff"""
This reverts commit b9f9a2316e7cd37082319608c606a1c7db057206.
* Revert "Revert "Revert "Revert "Try stuff""""
This reverts commit ccd498dd7228050ae05d2022e9106034fd4132f8.
* Try more stuff
* Add queries function
* Simplify queries function
* Move aliases to db_schema
* Revert "Move aliases to db_schema"
This reverts commit 69afed05c1807c3fef8d5b5872546fa22e60b4d0.
* Add ReadFuture and ListFuture
* Refactor queries function and add Queries struct
* Box futures in Queries::new
* Use from_tuple
* Add comment_view::queries and improve comment_report_view::queries
* Add local_user_view::queries
* Add post_report_view::queries
* Ad post_view::queries
* Add private_message_report_view::queries
* private_message_view, registration_application_view
* Use 'a in BoxedQuery
* comment_reply_view, community_view
* Change aliases to inline module
* person_mention_view
* person_view
* Use separate community_person_ban joins instead of including boolean literal in join-on clause
* Fix comment_view
* rerun ci
2023-07-28 10:36:50 +02:00
phiresky
e315092ee3
remove n^2 part of person triggers, improve community aggregate trigger ( #3739 )
...
* remove n^2 part of person triggers, improve community aggregate trigger
* comment out comment_score tests since previously they only accidentally succeeded
* empty
2023-07-27 23:36:51 +02:00
phiresky
1253a2a0d5
remove performance-problematic and buggy duplicate site aggregates ( #3732 )
2023-07-27 23:35:53 +02:00
d909f3455d
Change readme installation link ( #3736 )
...
Replaces https://github.com/LemmyNet/lemmy/pull/3551
2023-07-27 09:42:52 -04:00
RocketDerp
21a87ebaf2
Federation tests replication round1 - demonstrate absent replication of comment deletes ( #3657 )
...
* more robust test of unlike a comment, confirm replication to instance downstream from community home
* more robust 'delete a comment' test, confirm replication
* Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report
* typo and actually have Gamma comment check use gamma, not alpha
* prepare-drone-federation-test.sh has some more echo output and note about the LEMMY_DATABASE_URL format (#3651 )
* Add http cache for webfingers (#3317 )
* Add http cache for webfingers
* Remove the outgoing cache middleware & adjust the cache headers directive
* Use 1h & 3day cache header
* Update routes and adjust the cache headers location
* revert apub caching
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
* Rewrite activity lists to fix delete federation (fixes #3625 )
* Revert "typo and actually have Gamma comment check use gamma, not alpha"
This reverts commit 7dfb6ee0f4885da3a2d10316422f5b510772806c.
* Revert "Far more robust "Report a comment" test. Many comments about situation, this is currently failing because gamma does not get the report"
This reverts commit 7bd3b20ae08a64324029491ddb3ce4295ba16787.
* prettier TypeScript
* revised comments, as ResolveObject isn't using routine replication
* fmt
* fix api tests
* remove comment
---------
Co-authored-by: cetra3 <cetra3@hotmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
2023-07-27 06:17:40 -04:00
Bao
2d7b416652
Omit local instance from federated instances list ( #3712 )
...
Co-authored-by: Nutomic <me@nutomic.com>
2023-07-27 12:12:18 +02:00
phiresky
9bfa86d162
add trigram index to search ( #3719 )
...
* add trigram index to search
* add community index
2023-07-27 12:11:00 +02:00
3471f3533c
Sanitize html ( #3708 )
...
* HTML sanitization in apub code
* Sanitize API inputs
* fmt
* Dont allow html a, img tags
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-26 14:01:15 -04:00
biosfood
2de994797e
Add moderator view parameter to list posts ( #3176 )
...
* add option to only show posts from moderated communities
* rename moderated_only to moderator_view and show blocked users in moderator view
* add test for moderator view
* bump lemmy-js-client version for moderation view tests
* fix yarn lockfile
* retry build
* Delete logfile
* retry checks
* remove unused select statement from list posts
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-26 13:51:11 -04:00