Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Oct 21, 2024
1 parent 2f21ccf commit 56eedb1
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 131 deletions.
32 changes: 16 additions & 16 deletions EpochtalkServer.Auth.Guardian.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion EpochtalkServer.Models.AutoModeration.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ <h1 class="signature" translate="no">moderate(user, post_attrs)</h1>
</a>
Rule Anatomy
</h3>
<ul><li>Only works on posts</li><li>= Name: Name for this rule (for admin readability)</li><li>= Description: What this rule does (for admin readbility)</li><li>= Message: Error reported back to the user on reject action</li><li>= Conditions: condition regex will only work on</li><li><ul><li>body</li></ul></li><li><ul><li>thread_id</li></ul></li><li><ul><li>user_id</li></ul></li><li><ul><li>title (although it's not much use)</li></ul></li><li> == REGEX IS AN OBJECT with a pattern and flag property</li><li> Multiple conditions are allow but they all must pass to enable rule actions</li><li>= Actions: reject, ban, edit, delete (filter not yet implemented)</li><li>= Options:</li><li><ul><li>banInterval:</li></ul></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Affects</span><span class="w"> </span><span class="n">ban</span><span class="w"> </span><span class="n">action</span><span class="o">.</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Leave</span><span class="w"> </span><span class="n">blank</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">permanent</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Otherwise</span><span class="p">,</span><span class="w"> </span><span class="nc">JS</span><span class="w"> </span><span class="n">date</span><span class="w"> </span><span class="n">string</span></code></pre></li><li><ul><li>edit:</li></ul></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="p" data-group-id="3123807429-1">(</span><span class="n">replace</span><span class="w"> </span><span class="n">chunks</span><span class="w"> </span><span class="n">of</span><span class="w"> </span><span class="n">text</span><span class="p" data-group-id="3123807429-1">)</span><span class="p">:</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">regex</span><span class="p">:</span><span class="w"> </span><span class="nc">Regex</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">match</span><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="n">body</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">regex</span><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="n">has</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="n">pattern</span><span class="w"> </span><span class="ow">and</span><span class="w"> </span><span class="n">flag</span><span class="w"> </span><span class="n">property</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">text</span><span class="p">:</span><span class="w"> </span><span class="nc">Text</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="n">any</span><span class="w"> </span><span class="n">matches</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">template</span><span class="p">:</span><span class="w"> </span><span class="nc">String</span><span class="w"> </span><span class="n">template</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">add</span><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="n">above</span><span class="w"> </span><span class="ow">or</span><span class="w"> </span><span class="n">below</span><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="n">body</span></code></pre></li></ul>
<ul><li>Only works on posts</li><li>= Name: Name for this rule (for admin readability)</li><li>= Description: What this rule does (for admin readbility)</li><li>= Message: Error reported back to the user on reject action</li><li>= Conditions: condition regex will only work on</li><li><ul><li>body</li></ul></li><li><ul><li>thread_id</li></ul></li><li><ul><li>user_id</li></ul></li><li><ul><li>title (although it's not much use)</li></ul></li><li> == REGEX IS AN OBJECT with a pattern and flag property</li><li> Multiple conditions are allow but they all must pass to enable rule actions</li><li>= Actions: reject, ban, edit, delete (filter not yet implemented)</li><li>= Options:</li><li><ul><li>banInterval:</li></ul></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Affects</span><span class="w"> </span><span class="n">ban</span><span class="w"> </span><span class="n">action</span><span class="o">.</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Leave</span><span class="w"> </span><span class="n">blank</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">permanent</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="nc">Otherwise</span><span class="p">,</span><span class="w"> </span><span class="nc">JS</span><span class="w"> </span><span class="n">date</span><span class="w"> </span><span class="n">string</span></code></pre></li><li><ul><li>edit:</li></ul></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="p" data-group-id="8537686850-1">(</span><span class="n">replace</span><span class="w"> </span><span class="n">chunks</span><span class="w"> </span><span class="n">of</span><span class="w"> </span><span class="n">text</span><span class="p" data-group-id="8537686850-1">)</span><span class="p">:</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">regex</span><span class="p">:</span><span class="w"> </span><span class="nc">Regex</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">match</span><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="n">body</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">regex</span><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="n">has</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="n">pattern</span><span class="w"> </span><span class="ow">and</span><span class="w"> </span><span class="n">flag</span><span class="w"> </span><span class="n">property</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">text</span><span class="p">:</span><span class="w"> </span><span class="nc">Text</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">replace</span><span class="w"> </span><span class="n">any</span><span class="w"> </span><span class="n">matches</span></code></pre></li><li><pre><code class="makeup elixir" translate="no"><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="ss">template</span><span class="p">:</span><span class="w"> </span><span class="nc">String</span><span class="w"> </span><span class="n">template</span><span class="w"> </span><span class="n">used</span><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="n">add</span><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="n">above</span><span class="w"> </span><span class="ow">or</span><span class="w"> </span><span class="n">below</span><span class="w"> </span><span class="n">post</span><span class="w"> </span><span class="n">body</span></code></pre></li></ul>
</section>
</section>
<section class="detail" id="remove/1">
Expand Down
Loading

0 comments on commit 56eedb1

Please sign in to comment.