mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-04 09:41:32 +02:00
fix: Update event fetching limits and kinds in ProfileFeed and ProfileQuickViewFeed components
This commit is contained in:
@@ -12,12 +12,12 @@ interface ProfileFeedProps {
|
||||
|
||||
const ProfileFeed: React.FC<ProfileFeedProps> = ({ pubkey }) => {
|
||||
const now = useRef(new Date());
|
||||
const [limit, setLimit] = useState(10);
|
||||
const [limit, setLimit] = useState(100);
|
||||
|
||||
const { events, isLoading } = useNostrEvents({
|
||||
filter: {
|
||||
authors: [pubkey],
|
||||
kinds: [20],
|
||||
kinds: [1, 20],
|
||||
limit: limit,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -11,13 +11,13 @@ interface ProfileQuickViewFeedProps {
|
||||
|
||||
const ProfileQuickViewFeed: React.FC<ProfileQuickViewFeedProps> = ({ pubkey }) => {
|
||||
const now = useRef(new Date()); // Make sure current time isn't re-rendered
|
||||
const [limit, setLimit] = useState(20);
|
||||
const [limit, setLimit] = useState(100);
|
||||
|
||||
const { isLoading, events } = useNostrEvents({
|
||||
filter: {
|
||||
authors: [pubkey],
|
||||
limit: limit,
|
||||
kinds: [20],
|
||||
kinds: [1, 20],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user