lemmy/crates/db_views/src
Pavlos Smith c890797b37
Add controversial ranking (#3205)
* Added controversy rank property to posts and comments, and ability to sort by it

* Triggers instead of schedules tasks, integer -> double, TODO: comments don't seem to get updated with floats, divide SortTypes

* Created PersonSortType

* PersonSortType::MostComments case

* Removed unused PartialOrd trait

* Added new person sort type mappings

* SortType -> PersonSortType

* fixes

* cargo fmt

* fixes after merge with main

* Fixed bug in controversy rank trigger, removed TopX sorts from PersonSortType and added CommentScore instead

* Uncovered enum case

* clippy

* reset translation changes

* translations

* translations

* Added additional hot ordering on controversial posts and comments

* featured local and featured community added to controversy rank index, additional order_by removed (?), added post_score and post_count to PersonSortType

* Woodpecker rerun

* cargo fmt

* woodpecker rerun

* fixed controversy_rank order

* fix

* Readded migration as latest, removed second update statement for setting controversy rank
2023-07-26 13:07:05 -04:00
..
comment_report_view.rs Add controversial ranking (#3205) 2023-07-26 13:07:05 -04:00
comment_view.rs Add controversial ranking (#3205) 2023-07-26 13:07:05 -04:00
custom_emoji_view.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
lib.rs Add Custom Emojis Support (#2616) 2023-03-20 17:32:31 -04:00
local_user_view.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
post_report_view.rs Add controversial ranking (#3205) 2023-07-26 13:07:05 -04:00
post_view.rs Add controversial ranking (#3205) 2023-07-26 13:07:05 -04:00
private_message_report_view.rs Cache & Optimize Woodpecker CI (#3450) 2023-07-17 11:04:14 -04:00
private_message_view.rs Remove TypedBuilder from db_views and db_views_actor (#3637) 2023-07-17 12:20:25 +02:00
registration_application_view.rs UI Settings - Blur NSFW & Auto Expand (#3377) 2023-07-26 07:53:45 -04:00
site_view.rs Make functions work with both connection and pool (#3420) 2023-07-11 09:09:59 -04:00
structs.rs Add controversial ranking (#3205) 2023-07-26 13:07:05 -04:00