]> Untitled Git - lemmy.git/commitdiff
Spam
authorDessalines <tyhou13@gmx.com>
Fri, 26 Apr 2019 16:11:04 +0000 (09:11 -0700)
committerDessalines <tyhou13@gmx.com>
Fri, 26 Apr 2019 16:11:04 +0000 (09:11 -0700)
README.md
ui/src/components/login.tsx
ui/src/css/main.css

index 94238136f2caea60b5b42f73c97dd01eaffd5a91..eb923f3fa8fa9f6cc67c58ae2ea3789282358b16 100644 (file)
--- a/README.md
+++ b/README.md
@@ -73,6 +73,7 @@ and goto http://localhost:8536
 #### Running
 ```
 git clone https://github.com/dessalines/lemmy
+export DATABASE_URL=postgres://rrr:rrr@localhost/rrr
 cd lemmy
 ./install.sh
 # For live coding, where both the front and back end, automagically reload on any save, do:
index eb974c7970dbcbce749dc0cd720a679a3671aef4..b64c7a7cdbbb119af321fb13017d607330749f7a 100644 (file)
@@ -129,7 +129,7 @@ export class Login extends Component<any, State> {
         </div>
         <input type="hidden" value={this.state.registerForm.spam_timer} />
         <input type="text" class="d-none" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
-        <input type="text" class="no-s-how" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
+        <input type="text" class="no-s-hows" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
         <div class="form-group row">
           <div class="col-sm-10">
             <button type="submit" class="btn btn-secondary">{this.state.registerLoading ? 
@@ -168,10 +168,12 @@ export class Login extends Component<any, State> {
     let elapsed = endTimer - i.state.registerForm.spam_timer;
 
     i.state.registerForm.spam_timer = elapsed;
-    if (elapsed > 1142 && i.state.spamNada == undefined) {
+    if (elapsed > 1423 && i.state.spamNada == undefined) {
       WebSocketService.Instance.register(i.state.registerForm);
     } else {
-      window.location.href = "https://github.com/dessalines/lemmy";
+      i.state.spamNada = "nt";
+      i.setState(i.state);
+      {/* window.location.href = "https://github.com/dessalines/lemmy"; */}
     }
   }
 
index 6fd81eca9d4c04c9311c86d172f528f638197a36..1ddd33eb01323e6cfd596344d224af8c8ad54340 100644 (file)
@@ -101,6 +101,6 @@ blockquote {
   max-width: 50px;
 }
 
-.no-s-how {
+.no-s-hows {
   display: none;
 }