fix: tweaks
This commit is contained in:
@ -75,7 +75,7 @@ const TimelineFollows = (props: TimelineFollowsProps) => {
|
|||||||
return (mixin.data.data ?? [])
|
return (mixin.data.data ?? [])
|
||||||
.filter(a => !mainFeedIds.has(a.id) && postsOnly(a) && !isEventMuted(a))
|
.filter(a => !mainFeedIds.has(a.id) && postsOnly(a) && !isEventMuted(a))
|
||||||
.filter(a => a.tags.filter(a => a[0] === "t").length < 5)
|
.filter(a => a.tags.filter(a => a[0] === "t").length < 5)
|
||||||
.filter(a => a.created_at >= (oldest ?? unixNow()))
|
.filter(a => !oldest || a.created_at >= oldest)
|
||||||
.map(
|
.map(
|
||||||
a =>
|
a =>
|
||||||
({
|
({
|
||||||
|
@ -11,9 +11,9 @@ export default function useHashtagsFeed() {
|
|||||||
const sub = useMemo(() => {
|
const sub = useMemo(() => {
|
||||||
const rb = new RequestBuilder("hashtags-feed");
|
const rb = new RequestBuilder("hashtags-feed");
|
||||||
rb.withFilter()
|
rb.withFilter()
|
||||||
.kinds([EventKind.TextNote])
|
.kinds([EventKind.TextNote, EventKind.LiveEvent, EventKind.LongFormTextNote, EventKind.Polls])
|
||||||
.tag("t", hashtags)
|
.tag("t", hashtags)
|
||||||
.since(unixNow() - Hour * 4);
|
.since(unixNow() - Hour * 6);
|
||||||
return rb;
|
return rb;
|
||||||
}, [hashtags]);
|
}, [hashtags]);
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ import { useEffect, useMemo, useState } from "react";
|
|||||||
import { Link, Outlet, useLocation, useNavigate } from "react-router-dom";
|
import { Link, Outlet, useLocation, useNavigate } from "react-router-dom";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import { useUserProfile } from "@snort/system-react";
|
import { useUserProfile } from "@snort/system-react";
|
||||||
|
import { base64 } from "@scure/base";
|
||||||
import messages from "./messages";
|
import { unwrap } from "@snort/shared";
|
||||||
|
|
||||||
import Icon from "Icons/Icon";
|
import Icon from "Icons/Icon";
|
||||||
import useLoginFeed from "Feed/LoginFeed";
|
import useLoginFeed from "Feed/LoginFeed";
|
||||||
@ -24,8 +24,6 @@ import { ProfileLink } from "Element/User/ProfileLink";
|
|||||||
import SearchBox from "../Element/SearchBox";
|
import SearchBox from "../Element/SearchBox";
|
||||||
import SnortApi from "External/SnortApi";
|
import SnortApi from "External/SnortApi";
|
||||||
import useEventPublisher from "Hooks/useEventPublisher";
|
import useEventPublisher from "Hooks/useEventPublisher";
|
||||||
import { base64 } from "@scure/base";
|
|
||||||
import { unwrap } from "@snort/shared";
|
|
||||||
|
|
||||||
export default function Layout() {
|
export default function Layout() {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
@ -152,8 +150,8 @@ const AccountHeader = () => {
|
|||||||
|
|
||||||
if (!publicKey) {
|
if (!publicKey) {
|
||||||
return (
|
return (
|
||||||
<button type="button" onClick={() => navigate("/login")}>
|
<button type="button" onClick={() => navigate("/login/sign-up")}>
|
||||||
<FormattedMessage {...messages.Login} />
|
<FormattedMessage defaultMessage="Sign Up" />
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user