commenter_update.go: make link optional
This commit is contained in:
parent
b3f2cf3064
commit
b29147a95b
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func commenterUpdate(commenterHex string, email string, name string, link string, photo string, provider string) error {
|
func commenterUpdate(commenterHex string, email string, name string, link string, photo string, provider string) error {
|
||||||
if email == "" || name == "" || link == "" || photo == "" || provider == "" {
|
if email == "" || name == "" || photo == "" || provider == "" {
|
||||||
return errorMissingField
|
return errorMissingField
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="link-row" class="row" style="display: none">
|
<div id="link-row" class="row" style="display: none">
|
||||||
<div class="label">Website</div>
|
<div class="label">Website (Optional)</div>
|
||||||
<input class="input" type="text" name="link" id="link" placeholder="https://example.com">
|
<input class="input" type="text" name="link" id="link" placeholder="https://example.com">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user