* Finishing up post and comment actions
* Adding community_actions.
* instance and person actions
* Fixing person_actions.
* Fixing down migrations
* Adding person_content_combined.
* Search combined.
* Aggregates tables.
* Dont rename old tables
* Fixing some constraints.
* Convert bigints to ints
* Forgot a bigint.
* Rest of i64 -> i32
* Adding actions id columns.
* Fixing connection config.
* Formatting smoosh up.sql
* Use current_date instead of now
* Adding history tables for liked_combined
* Upping wal size
* Fix clippy
* Fixing clippy.
* Fixing i64
* Getting rid of let mut conn
* Adding the history status table.
* Adding published indexes to speed up history.
* Adding comment like history scanning.
* Fixing schema options setup.
* post_read history
* person_post_aggregates / read_comments history
* post_like history
* Fixing conflicts.
* Fixing clippy.
* Use constant batch_size.
* person content combined post and comment history.
* Fixing id scanning.
* post/comment_actions -> saved_combined history
* search history
* Post and comment aggregates -> post / comment history.
* Uncommenting full history building.
* Changing DB_BATCH_SIZE to i64
* Fixing clippy.
* Fix index names.
* Fixing diff check by removing indexes.
* Adding the uplete ignore actions::id columns.
* Fixing merge imports.
* Fixing submodule update
* Try trigger disabling.
* Fix clippy
* Remove history table, do faster bulk inserts. Smoosh first.
Comments about how this fast insert is done is within smoosh comments.
* Adding some timings.
* Fast person content combined history
* Adding search_combined
* Fix person saved combined unique names
* person_liked_combined
* Remove-aggregates
* Fixing up.sql issues
* Re-building schema.rs
* Fixing down migrations.
* Removing history updating.
* Format sql.
* Move postgres logging to customPostgresql.conf
* Try using postgres 16-alpine in CI
* Speeding up add_report_count.
* speed up inbox_combined
* Speeding up remove_post_sort_type_enums
* Fixing post_sort_type
* Speeding up person votes
* Fixing wrong conn.
* Fixing broken migrations
* Remove comment.
* Make sure to re-index table after re-enabling indexes.
* Removing id columns from actions tables.
* Fixing down migrations.
* Using create table as for smoosh migration
* create_table as for person_content_combined.
* Fixing person_content_combined uniques
* create table as for search_combined
* create table as for liked_combined
* create table as for inbox_combined.
* Fixing a few score types.
* Fixing id positions.
* attempt future wrapper
* Revert "attempt future wrapper"
This reverts commit ce95422228.
* use spawn
* remove `lazy` and change comment
* temporary change for test
* change 5000 back to 50
* fix comment about async laziness
* Add post_actions.disable_notifications (fixes#3042)
* Split up logic for send_local_notifs()
* refactor
* fmt
* add api endpoint, check
* dont call send_local_notifs from comment delete/remove
* move scrape_text_for_mentions() inside send_local_notifs()
* nullable
* simplify
* handle parent notification first
* cleanup
* remove `CommentResponse.recipient_ids`
* post notifications enum
* Follow posts (fixes#3069)
* use references
* cleanup
* new file
* db migration to merge mention, reply tables
* code adjustments
* adjust test code
* adjust enum case
* wip: get rid of inbox_combined table
* add table local_user_notification
* tests compiling
* get rid of inbox_combined, only use notification table
* rename view
* notify private messages
* clippy
* copy existing data
* wip: tests
* move tests
* clippy
* notify post subscribers
* community subscribe
* test fixes
* migration fix
* rename routes
* separate struct for api
* rename api params
* merge migrations
* separate notification modes for post/community
* fix
* down migration copy data
* test fix
* update api tests
* only single notification table
* clippy
* use local user id for recipient
* fix comments
* rename table
* recipient local user
* add indices
* keep local user id
* renames and cleanup
* NotificationDataType
* change notification response
* fix api tests
* test fix
* remove private_message.read
* fixes
* test fix
* fix
* replace lemmy_db_schema::utils::uplete with in-progress crate
* use published diesel-uplete crate
* remove unused tuplex dependency
* move diesel-uplete to dev-dependencies for lemmy_db_views_post
* import table modules in table_impls.rs
* update to new diesel-uplete with renamed stuff
* Adding GDPR-style data export
- Fixes#4540
Still need to:
- [ ] Figure out limits
* Fixing format
* Adding no_limit overrides.
* Slimming down export.
* Cleaning up types some more.
* Addressing PR comments.
* Embedding settings in backup.
* Fixing comment.
* Keep totals of upvotes and downvotes given to each user.
- Adds a `voted_at`, `upvotes` and `downvotes` to person_actions.
- Didn't use triggers, because I couldn't figure out how to get the
voter, and also because it should only be for local users anyway.
- Fixes#2370
* Clippy
* Adding history filling.
* Try to fix postgres alias error 1
* Update crates/db_schema/src/impls/person.rs
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
* Addressing PR comments
* Removing commented line.
* Fixing type errors.
* Fixing test
* Fixing like score 0 and api test errors.
* Some clippy fixes
* Update migrations/2025-06-14-141408_person_votes/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2025-06-14-141408_person_votes/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Update migrations/2025-06-14-141408_person_votes/up.sql
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Formatting sql
* Fixing migration.
* Cleaning up merge
---------
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Fix migration local_image_person
* Make constraints deferrable (ref #5798)
* Some more adjustments
* fix down migrations
* set not deferrable once done
* fix
---------
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
* Move config updated check to test
* use diffy
* clippy
* Fixes for "Move config updated check to unit test, use diffy" PR (#5812)
* replace diffy with unified_diff in test_config_defaults_updated
* revert changes to lemmy_db_schema_file
* use unified_diff in diff_check
* simplify
---------
Co-authored-by: dullbananas <dull.bananas0@gmail.com>
* Switch to library for rate limit (fixes#5550, fixes#5548)
* move debug rate limit logic
* move to file
* various rate limit methods
* move to utils crate
* use new code
* delete old rate limit code
* live updates
* live updates working
* clippy
* use binary keys
* clippy
* remove error
* cleanup
* Add incoming activity hook
* async working
* remove generic
* update with references
* remove insert_received_activity
* remove todo
* use crates.io dep
* some test data in migration tests after initial setup (40 migrations)
* - fixed migration rollbacks creating NOT NULL fields without DEFAULT value
- added couple of checks
* fix sql fmt
* fix sql fmt
* allow indexing and unwrapping in tests