summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-04-26 09:11:04 -0700
committerDessalines <happydooby@gmail.com>2019-04-26 09:11:04 -0700
commitaff41afa19c7765f8974e47166cc1796d3223ccc (patch)
tree0ab076743c5078c6ed40688dcdf73b0c928cec50
parent74af5ef8715e9c537441d1816c833596ebc694bb (diff)
Spam
-rw-r--r--README.md1
-rw-r--r--ui/src/components/login.tsx8
-rw-r--r--ui/src/css/main.css2
3 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 94238136..eb923f3f 100644
--- 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:
diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx
index eb974c79..b64c7a7c 100644
--- a/ui/src/components/login.tsx
+++ b/ui/src/components/login.tsx
@@ -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"; */}
}
}
diff --git a/ui/src/css/main.css b/ui/src/css/main.css
index 6fd81eca..1ddd33eb 100644
--- a/ui/src/css/main.css
+++ b/ui/src/css/main.css
@@ -101,6 +101,6 @@ blockquote {
max-width: 50px;
}
-.no-s-how {
+.no-s-hows {
display: none;
}