mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-30 00:41:12 +00:00
Fix group-related bugs
This commit is contained in:
parent
2e3df2838d
commit
4708dc3013
@ -8,8 +8,10 @@
|
||||
const meta = deriveGroupMeta(address)
|
||||
</script>
|
||||
|
||||
<NoteContentKind1
|
||||
note={{content: $meta?.about || ""}}
|
||||
minLength={100}
|
||||
maxLength={140}
|
||||
showEntire={!truncate} />
|
||||
{#key $meta?.about}
|
||||
<NoteContentKind1
|
||||
note={{content: $meta?.about || ""}}
|
||||
minLength={100}
|
||||
maxLength={140}
|
||||
showEntire={!truncate} />
|
||||
{/key}
|
||||
|
@ -30,10 +30,10 @@ export const readGroupMeta = (event: TrustedEvent) => {
|
||||
relays: event.tags.filter(nthEq(0, 'relay')),
|
||||
moderators: event.tags.filter(nthEq(0, 'p')),
|
||||
identifier: meta.d,
|
||||
name: meta.name,
|
||||
about: meta.about,
|
||||
banner: meta.banner,
|
||||
image: meta.image || meta.picture,
|
||||
name: meta.name || "",
|
||||
about: meta.about || "",
|
||||
banner: meta.banner || "",
|
||||
image: meta.image || meta.picture || "",
|
||||
listing_is_public: isSignedEvent(event),
|
||||
} as PublishedGroupMeta
|
||||
}
|
||||
|
@ -545,6 +545,7 @@ export const publishCommunityMeta = (address, identifier, meta) => {
|
||||
tags: [
|
||||
["d", identifier],
|
||||
["name", meta.name],
|
||||
["about", meta.about],
|
||||
["description", meta.about],
|
||||
["banner", meta.banner],
|
||||
["picture", meta.image],
|
||||
@ -565,6 +566,7 @@ export const publishGroupMeta = (address, identifier, meta, listPublicly) => {
|
||||
["d", identifier],
|
||||
["name", meta.name],
|
||||
["about", meta.about],
|
||||
["description", meta.description],
|
||||
["banner", meta.banner],
|
||||
["picture", meta.image],
|
||||
["image", meta.image],
|
||||
|
@ -1848,6 +1848,7 @@ export const mention = (pubkey: string, ...args: unknown[]) => [
|
||||
|
||||
export const mentionGroup = (address: string, ...args: unknown[]) => [
|
||||
"a",
|
||||
address,
|
||||
hints.WithinContext(address).getUrl(),
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user