Configuration options

This commit is contained in:
Astra 2025-04-20 15:04:51 +09:00
parent fe96164f4e
commit 164571ec19
Signed by: astra
SSH key fingerprint: SHA256:jQDNS75/33T59Ey4yAzrUPP/5YQaXEetsW8hwUae+ag
2 changed files with 20 additions and 3 deletions

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { Post } from "./pdsfetch";
import { Config } from "../../config"
let { post }: { post: Post } = $props();
</script>
@ -8,8 +9,8 @@
{#if post.authorAvatarCid}
<img
id="avatar"
src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.authorAvatarCid}"
alt="avatar of {post.displayName}"
src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.authorAvatarCid}"
/>
{/if}
<p>{post.displayName} | {post.timenotstamp}</p>
@ -25,7 +26,7 @@
<img
id="embedImages"
alt="Post Image"
src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={imageLink}"
src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={imageLink}"
/>
{/each}
</div>
@ -33,7 +34,7 @@
{#if post.videosLinkCid}
<video
id="embedVideo"
src="https://pds.witchcraft.systems/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.videosLinkCid}"
src="{Config.PDS_URL}/xrpc/com.atproto.sync.getBlob?did={post.authorDid}&cid={post.videosLinkCid}"
/>
{/if}
</div>