commenter_update.go: make link optional

This commit is contained in:
Adhityaa Chandrasekar committed 2020-02-13 19:38:47 -05:00
1 parent b3f2cf3064
commit b29147a95b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ import (
)
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
}
+1 -1
View File
@@ -42,7 +42,7 @@
</div>
<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">
</div>