bug: remove usage of LIMIT_UNTIL
This commit is contained in:
parent
4fefd7298c
commit
22479d8ec0
@ -62,8 +62,8 @@ export default function ProfilePage() {
|
|||||||
const about = Text({ content: aboutText, tags: [], users: new Map(), creator: "" })
|
const about = Text({ content: aboutText, tags: [], users: new Map(), creator: "" })
|
||||||
const lnurl = extractLnAddress(user?.lud16 || user?.lud06 || "");
|
const lnurl = extractLnAddress(user?.lud16 || user?.lud06 || "");
|
||||||
const website_url = (user?.website && !user.website.startsWith("http"))
|
const website_url = (user?.website && !user.website.startsWith("http"))
|
||||||
? "https://" + user.website
|
? "https://" + user.website
|
||||||
: user?.website || "";
|
: user?.website || "";
|
||||||
const zapFeed = useZapsFeed(id)
|
const zapFeed = useZapsFeed(id)
|
||||||
const zaps = useMemo(() => {
|
const zaps = useMemo(() => {
|
||||||
const profileZaps = zapFeed.store.notes.map(parseZap).filter(z => z.valid && z.p === id && !z.e && z.zapper !== id)
|
const profileZaps = zapFeed.store.notes.map(parseZap).filter(z => z.valid && z.p === id && !z.e && z.zapper !== id)
|
||||||
@ -129,7 +129,12 @@ export default function ProfilePage() {
|
|||||||
function tabContent() {
|
function tabContent() {
|
||||||
switch (tab) {
|
switch (tab) {
|
||||||
case ProfileTab.Notes:
|
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: {
|
case ProfileTab.Zaps: {
|
||||||
return (
|
return (
|
||||||
<div className="main-content">
|
<div className="main-content">
|
||||||
|
@ -43,7 +43,11 @@ const SearchPage = () => {
|
|||||||
<div className="flex mb10">
|
<div className="flex mb10">
|
||||||
<input type="text" className="f-grow mr10" placeholder="Search.." value={search} onChange={e => setSearch(e.target.value)} />
|
<input type="text" className="f-grow mr10" placeholder="Search.." value={search} onChange={e => setSearch(e.target.value)} />
|
||||||
</div>
|
</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>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user