Load relay owner notes only from the relay
This commit is contained in:
parent
ad58af8605
commit
7cc2a2f264
1 changed files with 5 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {onMount} from "svelte"
|
import {onMount} from "svelte"
|
||||||
import {sortBy, uniqBy} from "@welshman/lib"
|
import {sortBy, uniqBy} from "@welshman/lib"
|
||||||
import {feedFromFilter} from "@welshman/feeds"
|
import {feedFromFilter, makeIntersectionFeed, makeRelayFeed} from "@welshman/feeds"
|
||||||
import {NOTE, getAncestorTags} from "@welshman/util"
|
import {NOTE, getAncestorTags} from "@welshman/util"
|
||||||
import type {TrustedEvent} from "@welshman/util"
|
import type {TrustedEvent} from "@welshman/util"
|
||||||
import {createFeedController} from "@welshman/app"
|
import {createFeedController} from "@welshman/app"
|
||||||
|
|
@ -14,7 +14,10 @@
|
||||||
|
|
||||||
const ctrl = createFeedController({
|
const ctrl = createFeedController({
|
||||||
useWindowing: true,
|
useWindowing: true,
|
||||||
feed: feedFromFilter({kinds: [NOTE], authors: [pubkey]}),
|
feed: makeIntersectionFeed(
|
||||||
|
makeRelayFeed(url),
|
||||||
|
feedFromFilter({kinds: [NOTE], authors: [pubkey]}),
|
||||||
|
),
|
||||||
onEvent: (event: TrustedEvent) => {
|
onEvent: (event: TrustedEvent) => {
|
||||||
if (getAncestorTags(event.tags).replies.length === 0) {
|
if (getAncestorTags(event.tags).replies.length === 0) {
|
||||||
buffer.push(event)
|
buffer.push(event)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue