From 368c3ebbbe3c27516900be5d8b055449505ff169 Mon Sep 17 00:00:00 2001 From: "Yung Beef 4.2" <89395745+Yung-Beef@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:02:01 -0300 Subject: [PATCH 1/4] Create HotPosts.md --- docs/basics/polkaverse/HotPosts.md | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docs/basics/polkaverse/HotPosts.md diff --git a/docs/basics/polkaverse/HotPosts.md b/docs/basics/polkaverse/HotPosts.md new file mode 100644 index 00000000..34382a07 --- /dev/null +++ b/docs/basics/polkaverse/HotPosts.md @@ -0,0 +1,41 @@ +--- +id: hot-posts +title: Hot Posts Algorithm +description: Hot Posts on PolkaVerse receive extra visibility after being frequently engaged with by users on the network. +keywords: [Subsocial, PolkaVerse, Posts, Hot, Content, Algorithm, Polkadot] +--- + +PolkaVerse has a [Hot Posts](https://polkaverse.com/?tab=posts&type=hot&date=week) tab, +where users can see new posts that have received lots of engagement recently. +This serves as an avenue for lesser known creators to have access to more eyeballs if one of their posts performs exceptionally well. + +## The Algorithm + +The Hot Posts feed is based on the Normalized Ranked Posts List, which is determined from the Original Ranked Posts List. Let's look at each of these. + +### The Original Ranked Posts List + +When a new post is created, it is added to the list with an initial value based on how many SUB the post creator has locked. + +The formula for the initial value is: `log2(1 + (lock * (41400 / total_lock_per_era)))`, +where `lock` is how many SUB the creator has locked, and `total_lock_per_era` is the total amount of SUB locked on the network per era. + +When high quality comments (those that make it past the spam filter) are created on a post, the post receives 20 points. + +When a post is liked, it receives 5 points. + +At the end of the day, the scores of every post in the Original Ranked Posts List, that were posted within the last week, are reduced by 10%. +This decay will cause older posts to slowly drop out of Hot Posts. + + +### The Normalized Ranked Posts List + +In some situations, using only the Original Ranked Posts List could result in multiple posts from the same creator being shown together. +To avoid this, the Normalized Ranked Posts List is used. + +This list takes the Original Ranked Posts List and re-orders it so that posts from the same creator cannot be shown within 2-4 posts of each other. +The list regenerates every five minutes to keep it up-to-date with the latest Original Ranked Posts List. + +The Normalized Ranked Posts List is fed directly to the PolkaVerse UI to display on the [Hot Posts](https://polkaverse.com/?tab=posts&type=hot&date=week) tab. + + From 6ad6e0683b9b6f3d3940047072666c1c9ff073fa Mon Sep 17 00:00:00 2001 From: "Yung Beef 4.2" <89395745+Yung-Beef@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:11:15 -0300 Subject: [PATCH 2/4] Update HotPosts.md --- docs/basics/polkaverse/HotPosts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basics/polkaverse/HotPosts.md b/docs/basics/polkaverse/HotPosts.md index 34382a07..7db24ff1 100644 --- a/docs/basics/polkaverse/HotPosts.md +++ b/docs/basics/polkaverse/HotPosts.md @@ -17,9 +17,6 @@ The Hot Posts feed is based on the Normalized Ranked Posts List, which is determ When a new post is created, it is added to the list with an initial value based on how many SUB the post creator has locked. -The formula for the initial value is: `log2(1 + (lock * (41400 / total_lock_per_era)))`, -where `lock` is how many SUB the creator has locked, and `total_lock_per_era` is the total amount of SUB locked on the network per era. - When high quality comments (those that make it past the spam filter) are created on a post, the post receives 20 points. When a post is liked, it receives 5 points. @@ -27,6 +24,9 @@ When a post is liked, it receives 5 points. At the end of the day, the scores of every post in the Original Ranked Posts List, that were posted within the last week, are reduced by 10%. This decay will cause older posts to slowly drop out of Hot Posts. +The exact formulas used for the ranking calculations are subject to frequent change as the platforms develops, +which is why they are not listed here, as they may change frequently. + ### The Normalized Ranked Posts List From 867a8f0b4d86d5aadb1e782190416bde9d353b0b Mon Sep 17 00:00:00 2001 From: "Yung Beef 4.2" <89395745+Yung-Beef@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:29:55 -0300 Subject: [PATCH 3/4] Update HotPosts.md --- docs/basics/polkaverse/HotPosts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/basics/polkaverse/HotPosts.md b/docs/basics/polkaverse/HotPosts.md index 7db24ff1..ea1309a1 100644 --- a/docs/basics/polkaverse/HotPosts.md +++ b/docs/basics/polkaverse/HotPosts.md @@ -17,9 +17,10 @@ The Hot Posts feed is based on the Normalized Ranked Posts List, which is determ When a new post is created, it is added to the list with an initial value based on how many SUB the post creator has locked. -When high quality comments (those that make it past the spam filter) are created on a post, the post receives 20 points. +When a post is liked, it receives 5 points, and when high quality comments (those that make it past the spam filter) are created on a post, +the post receives 20 points. -When a post is liked, it receives 5 points. +The rewards that a post earns also increase its rating. At the end of the day, the scores of every post in the Original Ranked Posts List, that were posted within the last week, are reduced by 10%. This decay will cause older posts to slowly drop out of Hot Posts. @@ -27,7 +28,6 @@ This decay will cause older posts to slowly drop out of Hot Posts. The exact formulas used for the ranking calculations are subject to frequent change as the platforms develops, which is why they are not listed here, as they may change frequently. - ### The Normalized Ranked Posts List In some situations, using only the Original Ranked Posts List could result in multiple posts from the same creator being shown together. From 4875010acfbc171f4c9e5e14906c8364fba104a3 Mon Sep 17 00:00:00 2001 From: "Yung Beef 4.2" <89395745+Yung-Beef@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:32:38 -0300 Subject: [PATCH 4/4] Update sidebars.js --- sidebars.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sidebars.js b/sidebars.js index 1a679790..f25cc735 100644 --- a/sidebars.js +++ b/sidebars.js @@ -54,6 +54,9 @@ module.exports = { 'basics/tokenomics/token-distribution', 'basics/tokenomics/treasury', ], + PolkaVerse: [ + 'basics/polkaverse/hot-posts', + ], }, 'basics/content-staking/content-staking', 'basics/faq/overview',