lemmy/crates/apub
leoseg ba779b978f
New parameter read_only for /api/v3/post/list (#5264)
* added option to get only read only posts with unittests

* formatted code

* added index on (person_id, read) on post actions where read is not null

* formatted sql

* Update migrations/2024-12-15-151642_add_index_on_person_id_read_for_read_only_post_actions/up.sql

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

* Fixxed error in down.sql for migration of index on (person_id,read_only,post_id) on post_actions

* Fixxed error in unittests

* Update crates/db_views/src/post_view.rs

Co-authored-by: dullbananas <dull.bananas0@gmail.com>

---------

Co-authored-by: dullbananas <dull.bananas0@gmail.com>
2025-01-03 11:08:00 +01:00
..
assets Add note wrapper (fixes #2657) (#5221) (#5236) 2024-12-02 05:28:23 -05:00
src New parameter read_only for /api/v3/post/list (#5264) 2025-01-03 11:08:00 +01:00
Cargo.toml Add note wrapper (fixes #2657) (#5221) (#5236) 2024-12-02 05:28:23 -05:00