bug: remove usage of LIMIT_UNTIL

This commit is contained in:
Kieran 2023-02-06 22:33:01 +00:00
parent 4fefd7298c
commit 22479d8ec0
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 13 additions and 4 deletions

View File

@ -129,7 +129,12 @@ export default function ProfilePage() {
function tabContent() {
switch (tab) {
case ProfileTab.Notes:
return <Timeline key={id} subject={{ type: "pubkey", items: [id], discriminator: id.slice(0, 12) }} postsOnly={false} method={"LIMIT_UNTIL"} ignoreModeration={true} />;
return <Timeline
key={id}
subject={{ type: "pubkey", items: [id], discriminator: id.slice(0, 12) }}
postsOnly={false}
method={"TIME_RANGE"}
ignoreModeration={true} />;
case ProfileTab.Zaps: {
return (
<div className="main-content">

View File

@ -43,7 +43,11 @@ const SearchPage = () => {
<div className="flex mb10">
<input type="text" className="f-grow mr10" placeholder="Search.." value={search} onChange={e => setSearch(e.target.value)} />
</div>
{keyword && <Timeline key={keyword} subject={{ type: "keyword", items: [keyword], discriminator: keyword }} postsOnly={false} method={"LIMIT_UNTIL"} />}
{keyword && <Timeline
key={keyword}
subject={{ type: "keyword", items: [keyword], discriminator: keyword }}
postsOnly={false}
method={"TIME_RANGE"} />}
</div>
)
}