Commit Graph

481 Commits (a8d3e0511a503b5ac2955a487405a77c5a5638a6)

Author SHA1 Message Date
Bob Mottram b3bb866f69 Remove option to follow new actor
It wasn't implemented, and doing so could create an oprn relay situation where the authenticity of posts becomes obscured
2020-12-26 10:22:56 +00:00
Bob Mottram 7c2786535e Call graph colors 2020-12-23 19:55:51 +00:00
Bob Mottram db875e375c Link color 2020-12-23 18:15:30 +00:00
Bob Mottram f7d9864093 Module colors 2020-12-23 17:56:25 +00:00
Bob Mottram d3261de520 Plot modules call graph 2020-12-23 16:19:18 +00:00
Bob Mottram 549faf8b85 Remove unit tests from dot diagram 2020-12-23 14:19:06 +00:00
Bob Mottram 76a634b9dd sfdp settings 2020-12-23 13:41:54 +00:00
Bob Mottram 72b07306f9 Change dot command 2020-12-23 13:09:44 +00:00
Bob Mottram cfd1e7b24c Fix function tests 2020-12-23 12:48:50 +00:00
Bob Mottram 0aa42a1d71 Allow more time 2020-12-23 10:58:50 +00:00
Bob Mottram 61280ac6d0 Clustering of dot diagram 2020-12-22 23:26:09 +00:00
Bob Mottram 82a7cb2cb2 Image format 2020-12-22 23:09:09 +00:00
Bob Mottram b927863f7e Instructions for converting to image 2020-12-22 23:04:17 +00:00
Bob Mottram b42964ff59 Save call graph as dot diagram 2020-12-22 22:55:45 +00:00
Bob Mottram fa0bdab523 Tidying 2020-12-22 21:27:46 +00:00
Bob Mottram 3ff0866deb Test that number of function arguments match 2020-12-22 21:24:46 +00:00
Bob Mottram 49e052d5f0 Tidying 2020-12-22 19:29:14 +00:00
Bob Mottram 152d6228c7 Tidying 2020-12-22 19:28:34 +00:00
Bob Mottram ce885947ca Variable name 2020-12-22 18:20:32 +00:00
Bob Mottram 2fd901d682 Check that public functions don't begin with _ 2020-12-22 18:16:24 +00:00
Bob Mottram 5cd9aa8d66 Enforce convention of underscore before local function names 2020-12-22 18:06:23 +00:00
Bob Mottram 0cf0841402 Check that imports are correct 2020-12-22 13:57:24 +00:00
Bob Mottram 59357c0c4f More verbose module checks 2020-12-22 13:04:49 +00:00
Bob Mottram a7b094f84f Test for stranded functions which aren't called 2020-12-22 12:59:46 +00:00
Bob Mottram bb31ce37cd is_alive replaces isAlive 2020-12-18 15:29:12 +00:00
Bob Mottram 886e4f2beb Adjustable timeout for dormant post threads 2020-12-18 11:48:00 +00:00
Bob Mottram 825fb76066 Tidying 2020-12-16 11:19:16 +00:00
Bob Mottram ec87fbf4f8 Date test 2020-12-14 15:17:30 +00:00
Bob Mottram 88b0a6aa6f Check if tag already exists 2020-12-13 20:07:45 +00:00
Bob Mottram 9d176ab77d Unit test for reply to public post 2020-12-13 19:53:31 +00:00
Bob Mottram e9c0c4c3a9 Unit test for getting mentions 2020-12-13 19:05:26 +00:00
Bob Mottram 121a24d432 Test that css is not dangerous 2020-12-13 14:48:45 +00:00
Bob Mottram d6e60ff3d3 Mark dormant followed accounts on profile 2020-12-13 12:44:17 +00:00
Bob Mottram 9ba729c6fd Fix unit test 2020-12-13 11:31:16 +00:00
Bob Mottram 562e154aa9 Too much date checking 2020-12-09 10:38:09 +00:00
Bob Mottram 5c6a45956c Test for creation of news actor 2020-12-06 15:05:22 +00:00
Bob Mottram ad71c09aee Line length 2020-12-06 14:47:06 +00:00
Bob Mottram 9e483bdacf Don't remove radicle links 2020-12-06 10:18:41 +00:00
Bob Mottram 67e06f65c9 Guess hashtag categorisations 2020-12-05 11:11:32 +00:00
Bob Mottram 5d2b45560e Unit test for valid nickname 2020-11-24 10:53:10 +00:00
Bob Mottram ddb11903d4 Create default petname when following 2020-11-23 15:07:55 +00:00
Bob Mottram 3812131758 Test 2020-11-22 20:28:32 +00:00
Bob Mottram 7703a002cd utc offset adjust 2020-11-22 20:18:10 +00:00
Bob Mottram fb5cb31ba1 Improve date parsing tests 2020-11-22 19:13:54 +00:00
Bob Mottram 6f5d5f1019 Convert local dates to utc 2020-11-22 19:09:35 +00:00
Bob Mottram fb29da5f7a Date parser returns string 2020-11-22 19:01:18 +00:00
Bob Mottram 31b12ae207 Unit test for date parsing 2020-11-22 18:43:01 +00:00
Bob Mottram 7a01f422cf Set a maximum number of posts to appear in the newswire column 2020-11-22 11:48:53 +00:00
Bob Mottram 5364b71616 Option to allow access to the local network
This might be useful for mesh networks or private networks
2020-11-20 10:58:49 +00:00
Bob Mottram 1f1cbd3eea Another script test 2020-11-15 10:36:24 +00:00
Bob Mottram cadd0de15c Don't allow local network access 2020-11-11 09:42:48 +00:00
Bob Mottram 9d89bb5f94 Test for getting the first paragraph 2020-11-08 11:24:43 +00:00
Bob Mottram 888e38a95c Remove debug 2020-11-06 14:37:23 +00:00
Bob Mottram c8858f871a Check the size of individual rss/atom feed items 2020-11-03 16:04:25 +00:00
Bob Mottram cb49d90bb9 Removing long words from feed titles 2020-10-31 23:10:38 +00:00
Bob Mottram 292001479c Publish button position 2020-10-26 21:32:08 +00:00
Bob Mottram 0b02565159 Set position of rss icon within the timeline 2020-10-26 20:32:01 +00:00
Bob Mottram 8934a25123 Option to show icons as buttons 2020-10-25 20:38:01 +00:00
Bob Mottram 3fd0723684 Remove html before checking for hashtags 2020-10-25 12:47:16 +00:00
Bob Mottram 91751a1974 Spacing 2020-10-25 10:24:02 +00:00
Bob Mottram 3d30aa55ce Int cast 2020-10-25 10:10:56 +00:00
Bob Mottram bd77f9f403 Line length 2020-10-25 10:08:02 +00:00
Bob Mottram a4f9d57294 Test for rss hashtag extraction 2020-10-25 10:06:54 +00:00
Bob Mottram 67a3ef538f Add option for timeline button header full screen width 2020-10-24 18:44:41 +01:00
Bob Mottram 98e1805930 Option to show mobile newswire publish as icon or button 2020-10-24 17:04:53 +01:00
Bob Mottram 87604e6d77 Missing parameter 2020-10-23 20:55:03 +01:00
Bob Mottram fa419cf995 Option to set a maximum number of followers per account 2020-10-23 20:48:59 +01:00
Bob Mottram b5d492b668 Optionally allow the news account to be followed 2020-10-23 20:18:13 +01:00
Bob Mottram 32758ffe62 Option to archive news posts 2020-10-21 11:39:09 +01:00
Bob Mottram 89a9b8d7b3 From operator in hashtag rules 2020-10-20 18:37:15 +01:00
Bob Mottram c9f3d21b41 Support xor in hashtag rules 2020-10-20 10:43:30 +01:00
Bob Mottram 9391fa57c9 Option for maximum mirrored articles 2020-10-19 17:33:58 +01:00
Bob Mottram 2132b01950 Fix tag resolver 2020-10-18 16:10:36 +01:00
Bob Mottram dd580be52f Hashtag logic can test for post content 2020-10-17 19:49:43 +01:00
Bob Mottram f934f54528 Test for moderated feed 2020-10-17 18:36:10 +01:00
Bob Mottram c691cff82d Add hashtag interpreter 2020-10-17 13:05:41 +01:00
Bob Mottram c3dbec6181 Maximum size for rss/atom feeds
Prevents a hacked news source from implementing a denial of service
2020-10-16 12:40:01 +01:00
Bob Mottram 876b29b7be Maximum newswire posts per source is configurable 2020-10-16 11:26:06 +01:00
Bob Mottram 2899768828 Option to only show date at bottom of posts, not time 2020-10-11 19:50:13 +01:00
Bob Mottram 7d4926fed9 Don't use tmp for tests 2020-10-11 14:03:08 +01:00
Bob Mottram d879d20824 Don't use tmp for tests 2020-10-11 14:00:26 +01:00
Bob Mottram 068f3b448b Rename function 2020-10-11 13:41:15 +01:00
Bob Mottram 13c067bfa4 Remove dangerous markup from rss feeds 2020-10-11 10:33:31 +01:00
Bob Mottram 947a13fba2 Voting time period 2020-10-09 13:15:20 +01:00
Bob Mottram 72b5db2d9e Newswire votes threshold 2020-10-08 18:49:03 +01:00
Bob Mottram f3432d96f7 Positive or negative voting on newswire items 2020-10-08 17:31:13 +01:00
Bob Mottram 9d30158618 News instance type 2020-10-07 10:10:42 +01:00
Bob Mottram 3fe7a8c498 Tidying 2020-09-30 23:55:53 +01:00
Bob Mottram 463192242f Fix test 2020-09-30 23:52:39 +01:00
Bob Mottram a9a3a8321d Extra test case 2020-09-30 23:22:42 +01:00
Bob Mottram 3b1e67f87f Remove capabilities options 2020-09-27 20:32:31 +01:00
Bob Mottram 6435156179 Remove capabilities 2020-09-27 20:27:24 +01:00
Bob Mottram e5eaf42a36 Move functions 2020-09-25 14:21:56 +01:00
Bob Mottram 08b6d14400 Style of quoted paragraphs 2020-09-14 12:30:56 +01:00
Bob Mottram 488ef5b34d Extra blockquote check 2020-09-14 11:25:12 +01:00
Bob Mottram 1df8451956 Replace email style quote 2020-09-14 10:41:44 +01:00
Bob Mottram 21573b6ca7 Turn email style quotes into blockquotes 2020-09-14 10:33:42 +01:00
Bob Mottram bbe414d3a6 Single and multiple character change test 2020-09-03 19:52:18 +01:00
Bob Mottram e584076aca Unit test for constant time string check 2020-09-03 19:48:32 +01:00
Bob Mottram 7e87bbe2aa Avoid providing password hash match timing clues 2020-09-03 19:13:29 +01:00
Bob Mottram 6568be91ff Constant time password hash match 2020-09-03 19:07:02 +01:00
Bob Mottram 949f54f5f3 Unit test for adding new follow to calendar 2020-09-03 13:16:24 +01:00
Bob Mottram 7635652ac5 Directories must be created first 2020-08-29 12:14:19 +01:00
Bob Mottram 77c5f810f9 Don't write actors to cache while loading the timeline 2020-08-29 11:21:29 +01:00
Bob Mottram 0fce258068 Test for translations files 2020-08-26 19:21:57 +01:00
Bob Mottram 8d6b8f98b0 Validate content warnings 2020-08-25 20:35:55 +01:00
Bob Mottram 86f2e9d8ab Remove id endings in a better way 2020-08-23 12:13:35 +01:00
Bob Mottram c64a8aadc1 Check for allowed comments 2020-08-21 19:32:16 +01:00
Bob Mottram 1983f8935e Fix tests 2020-08-21 18:40:50 +01:00
Bob Mottram ec9941d7ca More actor parsing 2020-08-13 17:41:02 +01:00
Bob Mottram b7be635aa3 Return devices for a handle 2020-08-11 17:18:22 +00:00
Bob Mottram 0b70ee70d8 Test for long hashtag 2020-08-07 21:51:34 +01:00
Bob Mottram 323cb4a91b Replace quotes 2020-08-02 20:16:22 +01:00
Bob Mottram 853ef7af2e Replace quotes 2020-08-02 19:09:50 +01:00
Bob Mottram 5efc685220 Avoid adding quites within markup 2020-08-02 18:17:51 +01:00
Bob Mottram 3c86717fc6 Use html formatting for quotes 2020-08-02 18:01:12 +01:00
Bob Mottram 83cac23229 Youtube replacement domain is configurable 2020-08-02 10:51:20 +01:00
Bob Mottram 9bc6f1691e Configurable default follower approval 2020-07-12 13:31:28 +01:00
Bob Mottram 1a15d07dfd Improve checking for bad markup 2020-07-10 14:15:01 +00:00
Bob Mottram 31e40671a9 Remove debug 2020-07-08 16:21:04 +01:00
Bob Mottram 4c14d4a649 Remove html from searched profile descriptions 2020-07-07 15:18:02 +01:00
Bob Mottram 3ec54282dc Include calendar file in tests 2020-07-03 22:56:38 +01:00
Bob Mottram 36994134c2 Function not needed 2020-06-26 10:42:24 +00:00
Bob Mottram 125ead6f8b Function to extract mentions as a string 2020-06-26 09:11:47 +00:00
Bob Mottram 0e3c41db2b When deleting a post also remove it from the recent posts cache in memory 2020-06-24 14:30:50 +01:00
Bob Mottram dc9ae0c117 qrcode dependencies on parabola 2020-06-22 17:55:19 +01:00
Bob Mottram 18b80efcb7 Remove experimental semantics 2020-06-16 21:33:17 +01:00
Bob Mottram bbb767ae45 More signature tests 2020-06-15 14:35:33 +01:00
Bob Mottram 8245c35f46 Add jsonLD signing functions 2020-06-15 13:37:53 +01:00
Bob Mottram 5ba0e38090 Remove formatting such as bold and italics from posts
This is to be conformant with what Mastodon is doing. Probably markdown should be an optional extra
2020-06-14 14:25:38 +01:00
Bob Mottram f5e9db1dd6 Simpler single you test 2020-06-14 10:23:21 +01:00
Bob Mottram b6fd9f211f Fix accusatory count 2020-06-14 10:21:37 +01:00
Bob Mottram 0132674ea3 Label accusatory posts 2020-06-12 12:50:49 +01:00
Bob Mottram 35438c0fc8 Generalise proxying 2020-06-09 12:03:59 +01:00
Bob Mottram b8de97a9c3 Configuration for a secondary i2p domain alongside clearnet 2020-06-03 18:38:34 +01:00
Bob Mottram e75f1a0abb Remove carriage returns 2020-05-22 11:32:38 +00:00
Bob Mottram aa289fda8a Check for duplicate brackets in content 2020-05-12 10:42:24 +01:00
Bob Mottram 0d77fadc4f Tidying 2020-05-12 10:36:13 +01:00
Bob Mottram 315afa4bd8 Extra checks for bad content format 2020-05-12 10:34:58 +01:00
Bob Mottram a8a0465c01 flake8 format for unit tests 2020-04-05 14:25:47 +01:00
Bob Mottram 9c0664692a Tox test 2020-03-29 10:48:31 +00:00
Bob Mottram f9e8c09826 Decrease line lengths 2020-03-29 09:59:54 +00:00
Bob Mottram 2f46c2b31f Minimum per minute quotas 2020-03-28 11:46:11 +00:00
Bob Mottram 9b5743159b object 2020-03-27 19:54:41 +00:00
Bob Mottram 23bb250deb Remove trailing whitespace 2020-03-22 21:16:02 +00:00
Bob Mottram d0884fa04d Tidying 2020-03-22 20:36:19 +00:00
Bob Mottram 494a9ea94c Allow for tox addresses 2020-03-22 14:29:34 +00:00
Bob Mottram 596d3a8747 cryptodome fallback 2020-03-04 09:59:08 +00:00
Bob Mottram f6869f9308 Use debian cryptodome package 2020-03-04 09:41:21 +00:00
Bob Mottram ca5c0d5f20 Fix network unit test 2020-03-02 21:28:22 +00:00
Bob Mottram b93f5dd10b Optionally use onion address when fetching keys 2020-03-02 13:11:06 +00:00
Bob Mottram b366b9f80f Add onion domain to daemon 2020-03-02 12:41:25 +00:00
Bob Mottram 7c37ffcd36 Save blogs to their own box 2020-02-24 22:34:54 +00:00
Bob Mottram 0bd778d553 Blogs timeline 2020-02-24 14:39:25 +00:00
Bob Mottram 2b6aa3f44b Convert hex to char 2020-02-21 16:58:33 +00:00
Bob Mottram 205ff8b5cb Replace tags with unicode characters 2020-02-21 15:09:31 +00:00
Bob Mottram cc0b6f48e2 Extra emoji fields 2020-02-21 10:19:02 +00:00
Bob Mottram a7b0634d1e Check a few emoji cases 2020-02-21 09:53:36 +00:00
Bob Mottram 4bd90ca3a4 Fixing unit tests 2020-02-19 13:34:24 +00:00
Bob Mottram 55dcdd546d Fix opposite addresses 2020-02-19 13:16:38 +00:00
Bob Mottram 7e8d59e85c Messages 2020-02-19 12:51:14 +00:00
Bob Mottram 4019814a05 Stop existing threads 2020-02-19 12:27:21 +00:00
Bob Mottram 1bb4e08c35 Another test case for long text 2020-01-24 11:27:12 +00:00
Bob Mottram c5b86c1b1d Extra test 2020-01-24 10:52:59 +00:00
Bob Mottram f6acc62b16 Version 1.1.0 2019-12-14 10:52:19 +00:00
Bob Mottram 29558dabb1 Handle single long lines with no spaces 2019-12-13 12:41:26 +00:00
Bob Mottram 486619e05f Use of blurhash is optional 2019-12-04 11:11:18 +00:00
Bob Mottram 7779ab44e3 Media instance option 2019-11-28 16:16:43 +00:00
Bob Mottram 3259190161 Update post cache after regeneration of posts 2019-11-24 17:40:31 +00:00
Bob Mottram 0aedab61fb Handle post cache for undo like 2019-11-24 13:37:34 +00:00
Bob Mottram bd68e84776 Store recent posts in memory for fast access 2019-11-24 11:28:58 +00:00
Bob Mottram 65f54a5aa9 Theme setting functions 2019-11-23 13:04:11 +00:00
Bob Mottram ac2ab89aa6 Use dumps to save json 2019-11-23 10:20:30 +00:00
Bob Mottram 96c56491eb Test for saving and loading json 2019-11-23 10:13:57 +00:00
Bob Mottram 9de4fc04c1 Remove excess references to commentjson 2019-11-23 10:08:00 +00:00
Bob Mottram 96fd59d295 Maximum limit on emoji within a post 2019-11-16 14:49:21 +00:00
Bob Mottram 2c8d6721d2 Optionally enable shared inbox 2019-11-15 21:43:20 +00:00
Bob Mottram 21b99f2d61 Session parameters not needed 2019-11-13 10:50:16 +00:00
Bob Mottram c14ab97586 nodeinfo metadata endpoint 2019-11-13 10:32:12 +00:00
Bob Mottram 80a0560fed Extra test for content length 2019-11-12 18:21:52 +00:00
Bob Mottram 127a60280f Debug in http signature verification 2019-11-12 15:03:17 +00:00
Bob Mottram ffea5b704e Language option 2019-11-11 17:49:08 +00:00
Bob Mottram 0192532293 Fixing non-ascii text 2019-11-09 21:39:04 +00:00
Bob Mottram e84bf4d726 Revert "Revert "Use ensure_ascii when encoding to utf8""
This reverts commit 719bfb9f5d.
2019-11-09 12:52:47 +00:00
Bob Mottram 719bfb9f5d Revert "Use ensure_ascii when encoding to utf8"
This reverts commit 440016aa3a.
2019-11-09 12:47:42 +00:00
Bob Mottram 440016aa3a Use ensure_ascii when encoding to utf8 2019-11-09 12:33:48 +00:00
Bob Mottram 92de053e93 Extra commentjson tests 2019-11-09 12:13:39 +00:00
Bob Mottram 78842dff31 Fix network test on commentjson 0.8.2 2019-11-09 11:38:42 +00:00
Bob Mottram 00ec2e1b89 Extra test string 2019-11-09 11:06:19 +00:00
Bob Mottram 2b884be142 Include character encoding in content-type http header 2019-11-09 10:18:14 +00:00
Bob Mottram 6e4bd2092c Check that json is available 2019-11-09 09:52:09 +00:00
Bob Mottram f796f3f93b Test for non-ascii characters 2019-11-09 09:50:58 +00:00
Bob Mottram ba5608c705 No suffix 2019-11-04 20:45:10 +00:00
Bob Mottram ed2e97ab55 Try to remove long words 2019-11-04 20:39:14 +00:00
Bob Mottram 14d7e2e2b2 Don't replace emoji within json content 2019-10-29 13:04:38 +00:00
Bob Mottram 255a32c0dc Remove cached post on like update 2019-10-19 18:50:05 +01:00
Bob Mottram d8c4661741 Add queue to send out posts 2019-10-16 19:19:18 +01:00
Bob Mottram 6ea855feef Follow test without capabilities 2019-10-15 10:31:10 +01:00
Bob Mottram b0be557047 Fix status number using sequence data 2019-10-12 13:45:53 +01:00
Bob Mottram 3d9398609c Linebreaks with extra space 2019-10-01 11:36:51 +01:00