You've already forked nyx
mirror of
https://github.com/rls-moe/nyx
synced 2025-08-20 12:04:16 +00:00
Improved stability, improved spam algorithm, fixed some bugs
This commit is contained in:
@@ -78,6 +78,23 @@
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
{{ if (isModSession .Session) }}
|
||||
<tr>
|
||||
<td class="postblock">
|
||||
Mod Post
|
||||
</td>
|
||||
<td>
|
||||
<label>
|
||||
<input type="checkbox" name="modpost"/>Mark as Mod Post
|
||||
</label>
|
||||
{{ if (isAdminSession .Session) }}
|
||||
<label>
|
||||
<input type="checkbox" name="adminpost"/>Mark as Admin Post
|
||||
</label>
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
<tr>
|
||||
<td class="postblock">
|
||||
|
||||
@@ -100,6 +117,12 @@
|
||||
{{ else }}
|
||||
Anonymous
|
||||
{{ end }}
|
||||
{{ if .Reply.Metadata.modpost }}
|
||||
(Mod)
|
||||
{{ end }}
|
||||
{{ if .Reply.Metadata.adminpost }}
|
||||
[Admin]
|
||||
{{ end }}
|
||||
</span></label>
|
||||
<span class="date">{{dateFromID .Reply.ID | formatDate}}</span>
|
||||
{{ if .Session }}
|
||||
@@ -126,7 +149,15 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<span>
|
||||
{{printf "[SpamScore: %f]" (rateSpam .Reply.Text) }}
|
||||
{{ if not .Reply.Metadata.spamscore }}
|
||||
{{ $score := (rateSpam .Reply.Text) }}
|
||||
{{printf "[SpamScore: %f]" $score }}
|
||||
{{printf "[Captcha: %.3f%%]" (percentFloat (captchaProb $score)) }}
|
||||
{{printf "[OLD]"}}
|
||||
{{ else }}
|
||||
{{ printf "[SpamScore: %s]" .Reply.Metadata.spamscore }}
|
||||
{{ printf "[Captcha: %s %%]" .Reply.Metadata.captchaprob }}
|
||||
{{ end }}
|
||||
</span>
|
||||
<span class="reflink">
|
||||
<a href="/{{.Boardlink}}/{{.ThreadID}}/thread.html">No.{{.Reply.ID}}</a>
|
||||
|
Reference in New Issue
Block a user