mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-30 00:41:12 +00:00
Fix group name/description
This commit is contained in:
parent
95c08ba3b9
commit
fb32bf8ccc
@ -5,6 +5,8 @@
|
|||||||
export let address
|
export let address
|
||||||
|
|
||||||
const meta = deriveGroupMeta(address)
|
const meta = deriveGroupMeta(address)
|
||||||
|
|
||||||
|
$: display = displayGroupMeta($meta)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<span class={$$props.class}>{displayGroupMeta($meta)}</span>
|
<span class={$$props.class} class:text-neutral-400={display === '[no name]'}>{display}</span>
|
||||||
|
@ -31,8 +31,8 @@ export const readGroupMeta = (event: TrustedEvent) => {
|
|||||||
moderators: event.tags.filter(nthEq(0, 'p')),
|
moderators: event.tags.filter(nthEq(0, 'p')),
|
||||||
identifier: meta.d,
|
identifier: meta.d,
|
||||||
name: meta.name || "",
|
name: meta.name || "",
|
||||||
about: meta.about || "",
|
|
||||||
banner: meta.banner || "",
|
banner: meta.banner || "",
|
||||||
|
about: meta.about || meta.description || "",
|
||||||
image: meta.image || meta.picture || "",
|
image: meta.image || meta.picture || "",
|
||||||
listing_is_public: isSignedEvent(event),
|
listing_is_public: isSignedEvent(event),
|
||||||
} as PublishedGroupMeta
|
} as PublishedGroupMeta
|
||||||
|
Loading…
Reference in New Issue
Block a user