This commit is contained in:
@@ -57,7 +57,7 @@ export default function FediverseFollowers() {
|
|||||||
const [followersBlocked, setFollowersBlocked] = useState<Follower[]>([]);
|
const [followersBlocked, setFollowersBlocked] = useState<Follower[]>([]);
|
||||||
const [followers, setFollowers] = useState<Follower[]>([]);
|
const [followers, setFollowers] = useState<Follower[]>([]);
|
||||||
const [totalCount, setTotalCount] = useState<number>(0);
|
const [totalCount, setTotalCount] = useState<number>(0);
|
||||||
const [currentPage, setCurrentPage] = useState<number>(0);
|
const [currentPage, setCurrentPage] = useState<number>(1);
|
||||||
|
|
||||||
const serverStatusData = useContext(ServerStatusContext);
|
const serverStatusData = useContext(ServerStatusContext);
|
||||||
const { serverConfig } = serverStatusData || {};
|
const { serverConfig } = serverStatusData || {};
|
||||||
@@ -67,7 +67,7 @@ export default function FediverseFollowers() {
|
|||||||
const getFollowers = async () => {
|
const getFollowers = async () => {
|
||||||
try {
|
try {
|
||||||
const limit = 25;
|
const limit = 25;
|
||||||
const offset = currentPage * limit;
|
const offset = (currentPage - 1) * limit;
|
||||||
const u = `${FOLLOWERS}?offset=${offset}&limit=${limit}`;
|
const u = `${FOLLOWERS}?offset=${offset}&limit=${limit}`;
|
||||||
|
|
||||||
// Active followers
|
// Active followers
|
||||||
|
|||||||
Reference in New Issue
Block a user