fix: tweaks
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
Kieran 2023-11-14 11:09:42 +00:00
parent c530e4ba72
commit 55ec27cf4a
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 7 additions and 9 deletions

View File

@ -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 =>
({

View File

@ -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]);

View File

@ -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>
);
}