]> Untitled Git - lemmy.git/commit
Calculate initial hot_rank and hot_rank_active for posts and comments from other...
authorSander Saarend <sander@saarend.com>
Tue, 20 Jun 2023 08:52:51 +0000 (11:52 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Jun 2023 08:52:51 +0000 (10:52 +0200)
commite23621c2cdd2209dca34640c2b15e10a4d149112
tree56163b04d5b0256e0beb4c8a378a4783a6ad1499
parentd97ff65fe1e9c31e9f7c977a66100816816e07be
Calculate initial hot_rank and hot_rank_active for posts and comments from other instances (#3131)

* Calculate initial hot_rank when receiving posts and comments from other instances

* Move hot rank update logic into db_schema
crates/apub/src/activities/create_or_update/comment.rs
crates/apub/src/activities/create_or_update/post.rs
crates/db_schema/src/aggregates/comment_aggregates.rs
crates/db_schema/src/aggregates/post_aggregates.rs