mirror of
https://github.com/hoornet/vega.git
synced 2026-06-30 22:09:00 -07:00
Fix empty Media feed: use 24h window instead of 2h
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { NDKEvent } from "@nostr-dev-kit/ndk";
|
||||
import { fetchGlobalFeed } from "../../lib/nostr";
|
||||
import { fetchMediaFeed } from "../../lib/nostr";
|
||||
import { useMuteStore } from "../../stores/mute";
|
||||
import { parseContent, ContentSegment } from "../../lib/parsing";
|
||||
import { NoteCard } from "../feed/NoteCard";
|
||||
@@ -28,7 +28,7 @@ export function MediaFeed() {
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true);
|
||||
fetchGlobalFeed(300)
|
||||
fetchMediaFeed(500)
|
||||
.then((notes) => {
|
||||
const mediaNotes = notes.filter((n) => hasMediaType(n.content, MEDIA_TYPES.all));
|
||||
setAllNotes(mediaNotes);
|
||||
|
||||
Reference in New Issue
Block a user