lemmy/crates/db_views/src
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
..
comment_report_view.rs Ignore expired bans in CommentReportView::read, just like in CommentReportQuery::list (#4457) 2024-02-18 09:12:12 -05:00
comment_view.rs Local only community (#4350) 2024-01-25 11:04:25 -05:00
custom_emoji_view.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
lib.rs Adding /post/like/list and /comment/like/list for admins. (#4332) 2024-01-03 13:39:21 -05:00
local_user_view.rs Making login case-insensitive. Fixes #4272 (#4273) 2023-12-15 11:34:17 +01:00
post_report_view.rs Auto resolve reports on removing a comment or post. Fixes #4390 (#4402) 2024-02-15 08:52:04 -05:00
post_view.rs Adding ability to hide posts. (#4480) 2024-02-29 10:42:34 -05:00
private_message_report_view.rs Add macro assert_length!() for tests (#4348) 2024-01-04 11:51:55 -05:00
private_message_view.rs Blocking an instance also hides private messages from their users. (#4447) 2024-02-14 10:49:55 +01:00
registration_application_view.rs Use pretty_assertions for assertions (#4347) 2024-01-04 04:47:18 -05:00
site_view.rs Use Queryable instead of JoinView (#3917) 2023-08-31 15:26:10 +02:00
structs.rs Adding ability to hide posts. (#4480) 2024-02-29 10:42:34 -05:00
vote_view.rs Use pretty_assertions for assertions (#4347) 2024-01-04 04:47:18 -05:00