Skip to content

Commit

Permalink
Protect initial appraisal from bots
Browse files Browse the repository at this point in the history
  • Loading branch information
nubis committed Oct 20, 2024
1 parent 44c4658 commit 73b5e3b
Show file tree
Hide file tree
Showing 6 changed files with 1,067 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/models/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ impl HandleHub {
continue;
};

let score = U256::from(public_metrics.followers_count) * wei("85") / wei("100");
let followers = U256::from(public_metrics.followers_count.max(500));
let score = followers * wei("85") / wei("100");
handles.push(req.verify(author_id.to_string()).await?.set_score(score).await?);
} else {
self.state.info("verify_and_score_x", "skipped_post_no_regex_capture", &post.text).await;
Expand Down
Binary file added brand/kanji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
267 changes: 267 additions & 0 deletions brand/kanji.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
536 changes: 536 additions & 0 deletions brand/logo_circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added brand/peanut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
262 changes: 262 additions & 0 deletions brand/peanuts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 73b5e3b

Please sign in to comment.