Show image link if image fails to load

This commit is contained in:
Jon Staab
2025-06-05 13:37:50 -07:00
parent 11aa841241
commit 45397e7fb8
6 changed files with 34 additions and 12 deletions
@@ -1,6 +1,6 @@
<script lang="ts">
import {derived} from "svelte/store"
import {groupBy, first, last, uniq, avg, overlappingPairs} from "@welshman/lib"
import {groupBy, ago, MONTH, first, last, uniq, avg, overlappingPairs} from "@welshman/lib"
import {formatTimestamp} from "@welshman/lib"
import {MESSAGE, getTagValue} from "@welshman/util"
import type {TrustedEvent} from "@welshman/util"
@@ -17,8 +17,8 @@
}
const {url}: Props = $props()
const messages = deriveEventsForUrl(url, [{kinds: [MESSAGE]}])
const since = ago(MONTH)
const messages = deriveEventsForUrl(url, [{kinds: [MESSAGE], since}])
const conversations = derived(messages, $messages => {
const convs = []