Commit Graph

102 Commits

Author SHA1 Message Date
Justin Warren 6c72af8666
Added extra documentation on configuring thresholds. 2023-02-13 09:06:27 +11:00
Justin Warren b92dd21377
Updated documentation to reflect Mastodon v4.1.0
changes to the application scopes screen.
2023-02-13 08:59:08 +11:00
Justin Warren 2a5873261f
Updated changelog in prep for release. 2023-02-13 08:51:19 +11:00
Justin Warren ae8ab5411e
Merge branch 'main' into release-0.4.3 2023-02-13 08:46:48 +11:00
Justin Warren 61748acb1a
Merge pull request #44 from eigenmagic/allowlist-thresholds
Config options for blocklist thresholds
2023-02-13 08:46:04 +11:00
Justin Warren bb1d89e8be
Added blocklist threshold config params.
Added tests for threshold config params.
Actually using the config values in merge_blocklists()
2023-02-12 18:06:07 +11:00
Justin Warren b67ff0c471
Merging domain above threshold needs to be in the threshold check block.
Added debugging statements for threshold merging.
2023-02-12 17:53:26 +11:00
Justin Warren c2bf5ff492
Merge branch 'main' into release-0.4.3 2023-02-12 16:40:35 +11:00
Justin Warren b63f03669e
Update changelog with Python version change. 2023-02-12 16:38:13 +11:00
Justin Warren df3c16f24d
Dropped minimum Python version to 3.6 2023-02-12 16:32:56 +11:00
Justin Warren e1511acde0
Prepare for release of v0.4.3 2023-02-12 16:30:48 +11:00
Justin Warren 3f59ec9f45
Merge pull request #42 from eigenmagic/allowlist-thresholds
Allowlist thresholds
2023-02-12 16:13:44 +11:00
Justin Warren 1e377099f0
Merge branch 'main' into allowlist-thresholds 2023-02-12 16:11:00 +11:00
Justin Warren 7e2a4f4ffe
Merge pull request #36 from eigenmagic/public_blocks_api_33
Adding tests of comment merge.
2023-01-22 13:30:28 +11:00
Justin Warren 35fe9568c8
Merge branch 'main' into public_blocks_api_33 2023-01-22 13:27:24 +11:00
Justin Warren fb3a7ec2da
Added tests of comment merging.
Tweaked comment merging to pass tests.
2023-01-22 13:25:40 +11:00
Justin Warren 4e046b5b59
Merge pull request #35 from eigenmagic/public_blocks_api_33
Don't merge comments if new comment is empty.
2023-01-22 13:16:07 +11:00
Justin Warren b8aa11e5ce
Don't merge comments if new comment is empty. 2023-01-22 13:15:29 +11:00
Justin Warren 3b4cdcbcdf
Refactored the code to use Blocklist data structure for allowlists.
Fixed bug in parse_blocklist() for preparse selection.
Updated test cases for allowlists.
Removed some code that is no longer needed.
2023-01-22 13:05:44 +11:00
Justin Warren abc53c9148
Updated documentation and examples for allowlists. 2023-01-22 13:03:32 +11:00
Justin Warren c018ebdf35
Add merge thresholds to merge_blocklists() 2023-01-22 09:02:03 +11:00
Justin Warren e0207c4371
Remove unnecessary `count` from DomainBlock object. 2023-01-22 09:01:30 +11:00
Justin Warren e59187d98f
Merge branch 'main' into allowlist-thresholds 2023-01-22 08:27:21 +11:00
Justin Warren 94f106333c
Merge pull request #34 from eigenmagic/public_blocks_api_33
Added Mastodon public API parser type
2023-01-22 08:00:29 +11:00
Justin Warren 9fe934240a
Added Mastodon public API parser type because #33
Added ability to set scheme when talking to instances.
2023-01-22 07:54:46 +11:00
Justin Warren 12244a64b7
Merge pull request #32 from eigenmagic/release-v0.4.2
Version bump for regression fix release.
2023-01-19 06:50:10 +11:00
Justin Warren fb3bcb9950
Version bump for regression fix release. 2023-01-19 06:49:31 +11:00
Justin Warren 409691089f
Merge pull request #31 from sgrigson/bugfix-asdict
Blockdata var already converted to _asdict()
2023-01-19 06:39:43 +11:00
Shawn Grigson 8d3b9da144 Blockdata var already converted to _asdict() 2023-01-17 17:17:59 -06:00
Justin Warren 70b1ff32ff
Support a merge threshold level.
Added a Blocklist object.
Refactored tests to match changed code.
2023-01-17 09:04:34 +11:00
Justin Warren ede2918740
Merge pull request #29 from eigenmagic/release-v0.4.1
Release v0.4.1
2023-01-17 06:53:36 +11:00
Justin Warren ce98261d48
Fix typos in test_allowlist.
Added test of TLD allowlisting.
2023-01-17 06:52:25 +11:00
Justin Warren 44d4e78045
Merge branch 'main' into release-v0.4.1 2023-01-16 07:31:18 +11:00
Justin Warren 8d2f7a7f35
Merge pull request #26 from eigenmagic/scopes-hack-fix
Fix incorrect SQL instructions for scope setting. See: #20
2023-01-16 07:30:27 +11:00
Justin Warren 550916dc9b
Fix incorrect SQL instructions for scope setting. See: #20 2023-01-16 07:29:19 +11:00
Justin Warren d7d0859030
Added sample configs to demo allowlists. 2023-01-16 06:07:41 +11:00
Justin Warren 42cdddbe3f
Updated changelog. 2023-01-15 17:51:42 +11:00
Justin Warren 12cbee0e0c
Merge pull request #24 from eigenmagic/allowlists
Add allowlists
2023-01-15 17:22:18 +11:00
Justin Warren dc4bbd740b
Updated README to explain allowlist mechanism. 2023-01-15 13:38:07 +11:00
Justin Warren a25773f838
Allowlists just remove blocks from merged list before push. 2023-01-15 13:33:32 +11:00
Justin Warren 9bd79145dc
Edited sample config to better explain URL source 2023-01-15 13:32:45 +11:00
Justin Warren bf48a9639e
Added helper submodule for testing utils 2023-01-15 13:32:13 +11:00
Justin Warren a3d3571a20
Added basic tests of allowlist config args. 2023-01-15 10:10:52 +11:00
Justin Warren 3aa2e378e3
Remove implied setting of reject_media/reports
if severity is set to 'suspend'.
Complicates understanding of what the code actually does.
2023-01-15 10:02:12 +11:00
Justin Warren 04c19c62df
Merge branch 'main' into allowlists 2023-01-15 09:56:13 +11:00
Justin Warren e5f31a6bd1
Merge pull request #23 from eigenmagic/min-merge-bug
Mergeplan setting in config file now gets loaded.
2023-01-15 09:48:16 +11:00
Justin Warren 11accf33d3
Restructured argparsing for easier testing.
Fixed bug: mergeplan in config file was ignored. Reported in #22
Added test cases for cmdline parsing.
Added test cases for configfile parsing.
2023-01-15 09:46:37 +11:00
Justin Warren 7bc10d6690
Version bump to v0.4.1 2023-01-14 11:09:53 +11:00
Justin Warren 26f5464826
Added documentation on allowlists. 2023-01-14 11:09:38 +11:00
Justin Warren 17e0bdab0b
Force allowlist entries to always be severity 'noop'. 2023-01-14 11:00:21 +11:00