Skip to content

Commit

Permalink
add an overall trending weight applied to all trending toots
Browse files Browse the repository at this point in the history
  • Loading branch information
ashariyar committed Dec 12, 2024
1 parent afecbac commit 452824c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/WeightSetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import React, { useState, useEffect } from "react";

import Accordion from 'react-bootstrap/esm/Accordion';
import { TIME_DECAY, TheAlgorithm, Weights } from "fedialgo";
import { TIME_DECAY, TRENDING, TheAlgorithm, Weights } from "fedialgo";

import WeightSlider from './WeightSlider';

Expand Down Expand Up @@ -48,6 +48,7 @@ export default function WeightSetter({ algorithm }: { algorithm: TheAlgorithm })

<Accordion.Body>
{weightSlider(TIME_DECAY)}
{weightSlider(TRENDING)}
<div style={{height: '5px'}} />

<div style={roundedBox}>
Expand Down

0 comments on commit 452824c

Please sign in to comment.