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