✨ Reply do not post in realm
This commit is contained in:
parent
57dc2771c2
commit
64569cb499
@ -62,7 +62,7 @@ export default function PostPublish(props: {
|
||||
attachments: attachments(),
|
||||
categories: categories(),
|
||||
tags: tags(),
|
||||
realm_id: props.realmId,
|
||||
realm_id: data.publish_in_realm ? props.realmId : undefined,
|
||||
published_at: data.published_at ? new Date(data.published_at as string) : new Date(),
|
||||
repost_to: props.reposting?.id,
|
||||
reply_to: props.replying?.id
|
||||
@ -244,6 +244,17 @@ export default function PostPublish(props: {
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
<Show when={props.realmId && !props.editing}>
|
||||
<div class="border-b border-base-200 px-5 h-[48px] flex items-center">
|
||||
<div class="form-control flex-grow">
|
||||
<label class="label cursor-pointer">
|
||||
<span class="label-text">Publish in this realm</span>
|
||||
<input name="publish_in_realm" type="checkbox" checked class="checkbox checkbox-primary" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</Show>
|
||||
|
||||
<textarea required name="content" value={props.editing?.content ?? ""}
|
||||
class={`${styles.publishInput} textarea w-full`}
|
||||
placeholder="What's happened?! (Support markdown)" />
|
||||
|
Loading…
Reference in New Issue
Block a user