Commit Graph

307 Commits (82ffe39e9b3e7d226057a20cb63dd647ef22d077)

Author SHA1 Message Date
Bob Mottram 45f561c9ee Global blocks of nicknames 2023-04-30 10:38:20 +01:00
Bob Mottram 163f429575 Check for none 2023-04-29 21:39:32 +01:00
Bob Mottram aa9b2fb1e4 Blocking nicknames at account level 2023-04-29 12:15:07 +01:00
Bob Mottram cec7114709 Block based on nickname 2023-04-29 10:54:29 +01:00
Bob Mottram b12932e075 cwlists in a separate module 2023-03-20 14:50:19 +00:00
Bob Mottram 90a31c45ee Check that the noannounce file exists 2023-03-17 10:18:17 +00:00
Bob Mottram 489082a100 Importing blocks from csv 2023-02-10 18:42:58 +00:00
Bob Mottram f9384492f7 Improve handling of quotes within csv file 2023-02-10 13:38:29 +00:00
Bob Mottram 8198daa3e5 Only split once 2023-02-10 13:16:13 +00:00
Bob Mottram 63a313eb96 Typo 2023-02-10 13:13:05 +00:00
Bob Mottram daea7de461 Export blocked domains as csv 2023-02-10 13:08:41 +00:00
Bob Mottram 50c47b89f8 Import blocked domains from csv 2023-02-10 12:02:10 +00:00
Bob Mottram b91a876b75 v1.4.0 2023-01-21 23:03:30 +00:00
Bob Mottram 008a8d1284 Check that a domain is returned 2023-01-15 14:33:18 +00:00
Bob Mottram 86eb346cf7 'context' is sometimes used to mean the same thing as 'conversation'
This does not appear to be part of the AP spec, but is used in the wild
2023-01-09 11:38:05 +00:00
Bob Mottram 0b6ed0324f Improve checking for content 2023-01-08 22:23:02 +00:00
Bob Mottram 5e28e33dc0 Case insensitive 2022-12-30 21:33:14 +00:00
Bob Mottram 863bf90e25 Not case sensitive 2022-12-30 21:07:19 +00:00
Bob Mottram a6a54607c1 Skip blanks 2022-11-23 19:00:59 +00:00
Bob Mottram 30e515c971 Adding reasons to account level blocks 2022-11-23 18:40:45 +00:00
Bob Mottram c36459f76e Adding account level blocks with reasons 2022-11-23 18:14:46 +00:00
Bob Mottram 738a3faf3c Remove global block reasons 2022-11-23 14:32:11 +00:00
Bob Mottram 7c561a309d Store reasons on global domain blocks 2022-11-23 13:57:38 +00:00
Bob Mottram 8ce0cfcbe1 Update announces allowed 2022-11-08 15:43:26 +00:00
Bob Mottram 6602908522 Ability to block announces from particular accounts or instances 2022-11-08 14:16:19 +00:00
Bob Mottram 762a5bdb3e Check break after walk 2022-07-22 10:58:42 +01:00
Bob Mottram aea6b36cea Also detect titled words 2022-07-18 14:20:03 +01:00
Bob Mottram 65d9b0680a Function for line ending characters 2022-06-21 12:58:50 +01:00
Bob Mottram e1ac8f1ea1 Replace open with text in file function 2022-06-10 14:29:51 +01:00
Bob Mottram 9bab4c1684 Function for checking text in a file 2022-06-10 10:24:11 +01:00
Bob Mottram 72df995204 Tidying 2022-06-09 17:13:16 +01:00
Bob Mottram 5cf0f7ff9a Snake case 2022-06-09 17:06:12 +01:00
Bob Mottram cf27367719 Tidying 2022-06-09 17:05:42 +01:00
Bob Mottram 4308f7501a Explicitly set file encoding 2022-06-09 15:46:30 +01:00
Bob Mottram 5eef7c72e9 Use appropriate session to send follow rejects 2022-06-01 15:26:50 +01:00
Bob Mottram 611c6cab17 Tidying 2022-05-30 13:45:47 +01:00
Bob Mottram cd02056588 Use contentMap within cw list processing 2022-04-13 15:35:11 +01:00
Bob Mottram 4be7edd5f5 Handle incoming edited posts 2022-04-09 16:11:22 +01:00
Bob Mottram 92f3bbb763 Improve user agent blocking 2022-03-31 17:33:21 +01:00
Bob Mottram c395688c18 Improve user agent blocking 2022-03-31 17:14:19 +01:00
Bob Mottram e29d66ddd6 Version 1.3.0 2022-02-03 13:58:20 +00:00
Bob Mottram 1085f97070 Use enumerations 2022-01-08 10:58:54 +00:00
Bob Mottram 1aa79ce198 More checking of variable case 2021-12-30 13:56:38 +00:00
Bob Mottram 507e435a2d Snake case 2021-12-30 10:16:57 +00:00
Bob Mottram 086c760ace Moving to snake case 2021-12-29 21:55:09 +00:00
Bob Mottram 30e04544ae Snake case 2021-12-28 21:55:38 +00:00
Bob Mottram 2c39ccf66a Snake case 2021-12-28 14:01:37 +00:00
Bob Mottram b6ac0d6b24 Snake case 2021-12-27 22:19:18 +00:00
Bob Mottram 3128c724a1 Snake case 2021-12-27 20:38:02 +00:00
Bob Mottram 7e3e299873 Snake case 2021-12-27 19:05:25 +00:00
Bob Mottram 0a1f09175f Snake case 2021-12-27 17:49:35 +00:00
Bob Mottram 355524595c Snake case 2021-12-27 17:46:27 +00:00
Bob Mottram 48f51887b8 Snake case 2021-12-27 11:20:57 +00:00
Bob Mottram 0e87c9a362 Snake case 2021-12-26 23:41:34 +00:00
Bob Mottram 25a4d98cc6 Snake case 2021-12-26 20:36:08 +00:00
Bob Mottram 30120348ee Snake case 2021-12-26 20:01:37 +00:00
Bob Mottram 1684bbbbca Snake case 2021-12-26 19:47:06 +00:00
Bob Mottram bb86551e1c Snake case 2021-12-26 18:46:43 +00:00
Bob Mottram b8a3176154 Snake case 2021-12-26 18:17:37 +00:00
Bob Mottram 73bd65b8a9 Snake case 2021-12-26 17:15:04 +00:00
Bob Mottram b71d662d8e Snake case 2021-12-26 17:12:07 +00:00
Bob Mottram a16202afbe Snake case 2021-12-26 15:54:46 +00:00
Bob Mottram 0a2cb81a29 Snake case 2021-12-26 15:13:34 +00:00
Bob Mottram dee60be26b Snake case 2021-12-26 14:47:21 +00:00
Bob Mottram cdf7fbd8ac Snake case 2021-12-26 13:17:46 +00:00
Bob Mottram 79dabfa8fc Snake case 2021-12-26 12:45:03 +00:00
Bob Mottram 8f97b42fd4 Snake case 2021-12-26 12:19:00 +00:00
Bob Mottram a151710ce2 Snake case 2021-12-26 12:02:29 +00:00
Bob Mottram 594b3beb55 Snake case 2021-12-26 10:57:03 +00:00
Bob Mottram 963ed4aa1f Snake case 2021-12-26 10:19:59 +00:00
Bob Mottram 6abe5d83fe Snake case 2021-12-26 10:00:46 +00:00
Bob Mottram 49308fbcb5 Snake case 2021-12-25 23:51:19 +00:00
Bob Mottram 7b41bcb5a1 Snake case 2021-12-25 23:26:38 +00:00
Bob Mottram 4479027aef Snake case 2021-12-25 22:09:19 +00:00
Bob Mottram b028216dfd Snake case 2021-12-25 18:38:19 +00:00
Bob Mottram 5afc4e9e9b Snake case 2021-12-25 18:12:13 +00:00
Bob Mottram 49e7432076 Snake case 2021-12-25 17:09:22 +00:00
Bob Mottram acc780e780 Snake case 2021-12-25 16:17:53 +00:00
Bob Mottram 8c0c6b08ff Exception variable names 2021-12-25 15:28:52 +00:00
Bob Mottram cb0675cf5e File reading exception handling 2021-11-26 12:28:20 +00:00
Bob Mottram 10f24bcc2d Exception prefix 2021-11-25 22:22:54 +00:00
Bob Mottram a2b4efcaaf File write exceptions 2021-11-25 21:18:53 +00:00
Bob Mottram 6953b2cd43 More specific exceptions 2021-11-25 18:42:38 +00:00
Bob Mottram 8c4c1782ad Exceptions when file handling 2021-11-25 17:01:01 +00:00
Bob Mottram 99ae054cf2 Adding debug to exceptions 2021-10-29 17:31:20 +01:00
Bob Mottram e89538de47 Avoid default param, which makes static analysis harder 2021-10-29 15:49:13 +01:00
Bob Mottram 68ad5840eb Show warnings for exceptions 2021-10-29 15:48:24 +01:00
Bob Mottram d2a4444c7e Tidying 2021-10-21 20:19:44 +01:00
Bob Mottram 9ecb745d3d Load all lists and then enable them selectively 2021-10-21 20:00:25 +01:00
Bob Mottram 6a4cb89f58 Check that there are some lists enabled 2021-10-21 15:41:05 +01:00
Bob Mottram b91c6282c7 Configuration parameter for enabling cw lists 2021-10-21 14:36:40 +01:00
Bob Mottram 18d1c54fea Apply cw from lists 2021-10-21 14:08:21 +01:00
Bob Mottram d16942976b cw lists can contain words and domains 2021-10-21 12:17:26 +01:00
Bob Mottram b8c957eb38 Load cw lists at startup 2021-10-21 12:13:24 +01:00
Bob Mottram 198381e99a Tidying 2021-10-13 12:15:06 +01:00
Bob Mottram b8fbc8057b Tidying 2021-10-13 11:37:52 +01:00
Bob Mottram 614e274e24 Tidying 2021-10-13 11:11:02 +01:00
Bob Mottram 8e6084d42d Function to check for presence of actor in activity 2021-10-13 10:33:15 +01:00
Bob Mottram 266bdc0fe5 Delete cached post for muted announces 2021-09-28 17:32:54 +01:00
Bob Mottram 29ac6e95ff Remove cached json for muted announce 2021-09-28 16:48:14 +01:00
Bob Mottram d3e341b594 Also remove cached html for cached referenced post in announce 2021-09-28 16:15:13 +01:00
Bob Mottram 5dc3e11374 Setting recent posts json after mute 2021-09-28 14:24:57 +01:00
Bob Mottram 31a3aeb2dc Save muted status 2021-09-28 14:11:00 +01:00
Bob Mottram 59dc05b0fc Debug 2021-09-28 12:52:25 +01:00
Bob Mottram 8e2f98e930 Debug 2021-09-28 12:50:48 +01:00
Bob Mottram 43e85cc39c Set muted status before saving 2021-09-28 12:23:29 +01:00
Bob Mottram 450a9faf57 Setting ignores on announces 2021-09-28 12:20:14 +01:00
Bob Mottram 26430b2dfe Debug 2021-09-27 21:49:04 +01:00
Bob Mottram f589b31818 Debug 2021-09-27 21:45:09 +01:00
Bob Mottram 9b21ee570b Remove muted json 2021-09-27 21:06:03 +01:00
Bob Mottram 1bb2bf9cc9 Remove html even if post is not in index 2021-09-27 20:58:22 +01:00
Bob Mottram de23673fa2 Extra debug for mute 2021-09-27 20:44:04 +01:00
Bob Mottram 1328063a95 Remove duplication 2021-09-27 20:42:50 +01:00
Bob Mottram a15e905052 Remove html for muted posts 2021-09-27 20:34:32 +01:00
Bob Mottram 2a94dc9516 Change domain to libreserver.org 2021-09-10 17:14:50 +01:00
Bob Mottram 3a94d7fb41 Exception handling when deleting files
This can fail if a file is manually deleted or deleted in another thread
2021-09-05 11:17:43 +01:00
Bob Mottram 87a7d2e154 Tidying of actor urls 2021-08-14 12:13:39 +01:00
Bob Mottram 2a163cafd0 Muting by conversation ID 2021-08-12 11:22:04 +01:00
Bob Mottram 78fba638c3 Don't block self 2021-08-11 22:21:56 +01:00
Bob Mottram e52dde8027 c2s blocking 2021-08-11 22:10:26 +01:00
Bob Mottram 2782a4b8cf Unfollow when blocking 2021-08-11 22:00:01 +01:00
Bob Mottram e4b9a27de0 Function for account directory 2021-07-13 22:59:53 +01:00
Bob Mottram 53f6b637bf Tidying 2021-07-13 16:49:29 +01:00
Bob Mottram 5e2b02ad81 File open attribute style 2021-07-13 15:40:49 +01:00
Bob Mottram c37f3ac004 Extra architecture graphs 2021-06-26 15:21:24 +01:00
Bob Mottram 7e324702ce Module groups 2021-06-25 17:10:09 +01:00
Bob Mottram e0aac3c6a3 Separate function for extracting domain name 2021-06-23 22:31:50 +01:00
Bob Mottram 939e053e5b Function to check that activitypub posts have an object dictionary 2021-06-22 16:45:59 +01:00
Bob Mottram 25d0cd8c65 Use with style when writing files 2021-06-22 13:27:10 +01:00
Bob Mottram d42ee647d3 Revert "File storage functions"
This reverts commit 9c18e7042e.
2021-06-21 23:53:04 +01:00
Bob Mottram 550a993711 Revert "Storage functions"
This reverts commit feb4286031.
2021-06-21 23:52:50 +01:00
Bob Mottram feb4286031 Storage functions 2021-06-21 22:21:43 +01:00
Bob Mottram 9c18e7042e File storage functions 2021-06-21 22:02:03 +01:00
Bob Mottram 971ace14a8 Support broch mode within general blocking function 2021-06-21 16:56:55 +01:00
Bob Mottram 7c9fc8dfbb Simpler update of blocking cache 2021-06-21 15:39:05 +01:00
Bob Mottram 7d6b6d95fb Additional ise of blocked domains cache 2021-06-21 15:32:17 +01:00
Bob Mottram 1576db8ae3 Tidying 2021-06-21 12:10:08 +01:00
Bob Mottram 727ba3da6f Handle clock resets 2021-06-21 10:40:43 +01:00
Bob Mottram 2e9d1c93d9 Remove newlines 2021-06-21 10:26:13 +01:00
Bob Mottram 084da8d2a4 Cache blocked domains 2021-06-21 10:22:24 +01:00
Bob Mottram ab7c2a9a66 Module groups 2021-06-15 16:08:12 +01:00
Bob Mottram fc3a5c664c Function to test for account directories 2021-06-07 10:10:52 +01:00
Bob Mottram 2dd4ec4854 Simplify 2021-06-05 14:42:18 +01:00
Bob Mottram dd8b9da31c Only return true if broch mode lapses 2021-06-05 14:38:57 +01:00
Bob Mottram 46accb7b40 NodeInfo metadata is unavailable during broch mode 2021-05-03 11:17:21 +01:00
Bob Mottram d98dc388d8 Add ignores collection to make mutes visible to c2s 2021-03-21 10:45:24 +00:00
Bob Mottram 44df9eabaf Mute and unmute via c2s 2021-03-20 21:20:41 +00:00
Bob Mottram 0f1b7eb67b Set broch mode on daemon start 2021-02-16 09:50:50 +00:00
Bob Mottram 1adc343ebd Improve test for current broch mode 2021-02-15 23:01:07 +00:00
Bob Mottram df550f8e65 After elapsing set broch mode off in config 2021-02-15 22:53:58 +00:00