phiresky
dca43dcfd9
fix a bug where after an hour community follows would be overwritten completely by an incremental upgrade
2023-09-13 10:54:10 +00:00
4f1240487e
Fixing high CPU usage on federation worker recheck. Fixes #3958
2023-09-12 15:54:49 -04:00
phiresky
375d9a2a3c
Persistent, performant, reliable federation queue ( #3605 )
...
* persistent activity queue
* fixes
* fixes
* make federation workers function callable from outside
* log federation instances
* dead instance detection not needed here
* taplo fmt
* split federate bin/lib
* minor fix
* better logging
* log
* create struct to hold cancellable task for readability
* use boxfuture for readability
* reset submodule
* fix
* fix lint
* swap
* remove json column, use separate array columns instead
* some review comments
* make worker a struct for readability
* minor readability
* add local filter to community follower view
* remove separate lemmy_federate entry point
* fix remaining duration
* address review comments mostly
* fix lint
* upgrade actitypub-fed to simpler interface
* fix sql format
* increase delays a bit
* fixes after merge
* remove selectable
* fix instance selectable
* add comment
* start federation based on latest id at the time
* rename federate process args
* dead instances in one query
* filter follow+report activities by local
* remove synchronous federation
remove activity sender queue
* lint
* fix federation tests by waiting for results to change
* fix fed test
* fix comment report
* wait some more
* Apply suggestions from code review
Co-authored-by: SorteKanin <sortekanin@gmail.com>
* fix most remaining tests
* wait until private messages
* fix community tests
* fix community tests
* move arg parse
* use instance_id instead of domain in federation_queue_state table
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: SorteKanin <sortekanin@gmail.com>
2023-09-09 12:25:03 -04:00
3b67642ec2
Add ts(skip) attributes to fix js client code generation ( #3952 )
...
* Add ts(skip) attributes to fix js client code generation
* use feature flag
2023-09-08 08:35:58 -04:00
Dessalines
9785b20843
Adding a scaled sort, to boost smaller communities. ( #3907 )
...
* Adding a scaled sort, to boost smaller communities.
- Previously referred to as *best* .
- Fixes #3622
* Fixing scheduled task update.
* Converting hot_rank integers to floats.
* Altering hot_rank psql function to default to zero after a week.
* Setting scaled_rank to zero, where hot_rank is zero.
* Adding image_upload table.
2023-09-06 13:43:27 -04:00
SorteKanin
4121fc4d56
Include domain in errors ( #3944 )
2023-09-06 13:29:15 -04:00
71d61138bc
Replace ammonia lib with manual html escaping ( fixes #3774 ) ( #3938 )
...
* Replace ammonia lib with manual html escaping (fixes #3774 )
* prettier
* clippy
* remove sanitize unit test
* fix tests
* fix schema
2023-09-06 10:56:26 -04:00
Anon
fe3ebea95a
Add logging for pictrs uploads ( #3927 )
...
* Add logging for pictrs uploads
* cleanup
2023-09-06 09:13:30 -04:00
Dessalines
797d26fdf4
Change AddAdmin to use person_id instead of local_user_id ( #3941 )
...
- Front ends don't have easy access to local_user_id on moddable
items like comments and posts.
2023-09-06 11:37:03 +02:00
a0ea8dbc00
Auto resolve reports trigger ( #3871 )
...
* Revert "Automatically resolve report when post/comment is removed (#3850 )"
This reverts commit f7f6766650
.
* Automatically resolve reports using db trigger
* lint
* use mod log tables
* fix migration
* fix ci
* fix clippy
2023-09-05 05:35:10 -04:00
366d9d1e2e
Get rid of remaining Perform/SendActivity traits ( fixes #3670 ) ( #3926 )
...
* Get rid of remaining Perform/SendActivity traits (fixes #3670 )
* fix api tests
* ci
2023-09-05 05:33:46 -04:00
dullbananas
a1a9c3e4c0
Make use of variables less redundant and inconsistent in distinguish.rs ( #3932 )
...
* Make use of variables less redundant and inconsistent in distinguish.rs
* fmt
2023-09-04 11:06:54 +02:00
dullbananas
5b5ac0f37d
Remove left joins and use only one call to select method in post_view.rs ( #3865 )
...
* Use same joins for read and list in post_view.rs
* fmt
* rerun ci
* rerun ci
* Update post_view.rs
* rerun ci
* rerun ci
* Update post_view.rs
* Use `exists`
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* rerun ci
* Update post_view.rs
* person_id_join parameter
* rerun ci
* fmt
* Update post_view.rs
* rerun ci
* Update post_view.rs
* rerun ci
* fmt
* Update post_view.rs
* fmt
* Use into_sql
* Update post_view.rs
* Use inferred query source for BoxableExpression
* Update post_view.rs
* Update post_view.rs
* Update community.rs
* Update community.rs
* Update post_view.rs
* fmt
* Update community.rs
* Update community.rs
* Update community.rs
* Update community.rs
* Update community.rs
* Update post_view.rs
* Update community.rs
* fmt
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* Update post_view.rs
* fmt
* Update post_view.rs
* Update post_view.rs
* fix
* trigger ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: phiresky <phireskyde+git@gmail.com>
2023-09-04 11:05:00 +02:00
Nick Webster
a57658d99c
Adding a new config flag to disable pictrs caching for thumbnails ( #3897 )
...
* add logic to prevent downloading remote pictrs images
* apply formatting
* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance
* Do not attempt a pictrs fetch if the remote image is also on a pictrs instance and cache_federated_images is false
* Generalising the no caching option to handle all remote images
* rustfmt
* Return None if the URL is not an image
* Updating defaults.hjson
* fixing typo
* Fixing typo
* Skip cloning the Url unless we need to
* using a HEAD request for checking the content type, saving bandwidth/improving perf
* Removing early returns
* Switching back to GET requests for Content-Type because pictrs does not handle HEAD requests
* Simplifying logic and using metadata_image instead of url if we do not get a pictrs thumbnail
* Removing unused import
* Return None as a thumbnail if caching is disabled
* formatting
---------
Co-authored-by: Djones4822 <david.jones4822@gmail.com>
2023-08-31 10:36:39 -04:00
dullbananas
15930cbf4d
Use Queryable instead of JoinView ( #3917 )
...
* Update utils.rs
* Update traits.rs
* Update comment_report_view.rs
* Update comment_view.rs
* Update local_user_view.rs
* Update post_report_view.rs
* Update post_view.rs
* Update private_message_report_view.rs
* Update private_message_view.rs
* Update registration_application_view.rs
* Update site_view.rs
* Update structs.rs
* Update comment_reply_view.rs
* Update community_block_view.rs
* Update community_follower_view.rs
* Update community_moderator_view.rs
* Update community_person_ban_view.rs
* Update community_person_ban_view.rs
* Update community_view.rs
* Update person_block_view.rs
* Update person_mention_view.rs
* Update person_view.rs
* Update structs.rs
* Update admin_purge_comment_view.rs
* Update admin_purge_community_view.rs
* Update admin_purge_person_view.rs
* Update admin_purge_post_view.rs
* Update mod_add_community_view.rs
* Update mod_add_view.rs
* Update mod_ban_from_community_view.rs
* Update mod_ban_view.rs
* Update mod_feature_post_view.rs
* Update mod_hide_community_view.rs
* Update mod_lock_post_view.rs
* Update mod_remove_comment_view.rs
* Update mod_remove_community_view.rs
* Update mod_remove_post_view.rs
* Update mod_transfer_community_view.rs
* Update structs.rs
* Update utils.rs
* Update private_message_view.rs
* Update comment_report_view.rs
* Update registration_application_view.rs
* Update utils.rs
* fix
* fix db_views
* fix
* Update comment_view.rs
2023-08-31 15:26:10 +02:00
Dessalines
56e26fc3d4
Adding a post_view mode. Fixes #3730 ( #3731 )
...
* Adding a post_view mode. Fixes #3730
* Fix test.
* Addressing PR comments.
* Adding a post_view mode. Fixes #3730
* Fix test.
* Addressing PR comments.
* Fixing column order.
* Fix default Ok returns.
* Removing return Err(... where feasible.
2023-08-31 09:01:08 -04:00
fed6542055
Implement remote follow ( #3738 )
...
* Add remote follow url to webfinger response
* update apub lib
2023-08-31 09:00:41 -04:00
biosfood
384e55f0e4
update moderator view ( #3820 )
...
* update api tests for new moderator view
* chage moderator view to be a listing type in get posts
Note: Internally, the listing type is called ListingType.ModeratorView,
but it's called "Moderator View" in the api endpoint
* fix formatting
* add support for moderator view to list comments
* add api test for moderator view when listing comments
* fix api test formatting
* retry tests
* don't filter out blocked users and communities when using moderator view
* fix cargo tests failing
* fix formatting
* fix previous merge
* Adding ModeratorView to listing_type_enums
* Fixing fmt.
* Adding a default to ListingType.
* Upgrading to use new lemmy-js-client.
---------
Co-authored-by: Nutomic <me@nutomic.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-08-31 13:07:45 +02:00
Lukas Trombach
c93bde9799
replace expect
with ErrorUnauthorized
( #3915 )
...
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-29 19:08:44 -04:00
b2aee565f3
Allow passing auth via header or cookie ( #3725 )
...
* Allow passing auth via header or cookie
* revert submodule
* taplo
* fix build
* working
* convert apub api methods
* also set cache-control header
* opt
* clippy
* deduplicate code, ignore invalid auth
* clippy
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-29 10:47:57 -04:00
7fd14b3d2a
Make remove content optional during account deletion ( fixes #1617 ) ( #3817 )
...
* Make remove content optional during account deletion (fixes #1617 )
* simplify purge params by passing context
* update js client
* add delete content
* update woodpecker config
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-28 12:23:45 +02:00
Lukas Trombach
26d125cc63
Sitemap - use UTC time ( #3914 )
...
* change local filter to use `eq` function
* use Utc time for sitemap
2023-08-28 11:09:20 +02:00
phiresky
514f2222e0
Fix time zone handling ( #3496 )
...
* convert naive time to utc time
* compounding fixes
* cargo fmt
* fix the rest
* fix down migration
* fix migrations
* fix after merge
* clippy fix
* ap-fed 0.5.0
---------
Co-authored-by: Nutomic <me@nutomic.com>
2023-08-24 11:27:00 -04:00
6047257bfc
Move admin flag from person to local_user ( fixes #3060 ) ( #3403 )
...
* Move admin flag from person to local_user (fixes #3060 )
The person table is for federated data, but admin flag can only
apply to local users. Thats why it really belongs in the local_user
table. This will also prevent the federation code from accidentally
overwriting the admin flag
* fmt
* try to fix api tests
* lint
* fix person view
* ci
* ci
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-08-24 05:40:08 -04:00
Freakazoid182
51ccf318e8
Lowercase domain on db query filters ( #3849 ) ( #3873 )
...
* Lowercase domain on db query filters (#3849 )
* Add test to get a community on different cased domain (#3849 )
* Lowercase the identity for webfinger (#3849 )
* Lowercase both sides of the domain comparison (#3849 )
* Format api_tests (#3849 )
* Lowercase domain lookup on Instance and Person (#3849 )
---------
Co-authored-by: Freek van Zee <freek.van.zee@mediamonks.com>
Co-authored-by: Freakazoid182 <>
2023-08-22 11:10:21 -04:00
Lukas Trombach
28324ad2c8
Sitemap ( #3808 )
...
* generate sitemap.xml file
* set up endpoint for sitemap
* Update sitemap generation
- remove sitemap generation from scheduled tasks
- add posts query for sitemap
- create sitemap module in API crate
* remove priority and change freq from sitemap
* add configuration option for number of posts for sitemap
* fix default config
* rate limit sitemap endpoint
* update sitemap query
* update sitemap generation
- remove config value for query limit
- adjust sitemap generation to query changes
- tidy up error handling
* refactor sitemap generation loop
* remove `limit` argument
* refactor `generate_urlset` and add unit test
* change query to only fetch local posts of past 24h
* fix outdated comment and log
* cargo fmt
2023-08-22 10:30:15 -04:00
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
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
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
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
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
RocketDerp
b4380cb548
Do not hide read posts when it is a user profile view ( #3791 )
2023-08-02 12:31:28 -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
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
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
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