Commit Graph

2240 Commits (221862705e042213c336ee6a697fe1a373d4c325)

Author SHA1 Message Date
Bob Mottram 6bf5e20de9 Copy search banner 2021-08-21 13:56:46 +01:00
Bob Mottram dd5dccad46 Handle html in moveTo 2021-08-20 14:45:42 +01:00
Bob Mottram 2ad9049b4c Fix unit tests 2021-08-15 12:52:51 +01:00
Bob Mottram 970f13c7a3 Avoid circular reference when generating hashtag categories 2021-08-15 12:39:20 +01:00
Bob Mottram 6cf76ccc5f More debug 2021-08-15 11:51:39 +01:00
Bob Mottram 87a7d2e154 Tidying of actor urls 2021-08-14 12:13:39 +01:00
Bob Mottram 27544b7eaa Add lowBandwidth to image conversions 2021-08-13 21:18:36 +01:00
Bob Mottram 11c02dcfb9 Checkbox for low bandwidth 2021-08-13 18:31:07 +01:00
Bob Mottram e91e4a0727 Command option for low bandwidth images 2021-08-13 18:08:50 +01:00
Bob Mottram 5278d8c946 Allow any origin for permissive headers 2021-08-13 11:00:39 +01:00
Bob Mottram 9c6db7be11 Simplify 2021-08-12 22:16:43 +01:00
Bob Mottram b27fa065b4 Displaying website Url 2021-08-12 22:08:55 +01:00
Bob Mottram 5a68eece77 Translations for website profile field 2021-08-12 21:56:00 +01:00
Bob Mottram 39ab8ecd53 Website field in profile 2021-08-12 21:40:23 +01:00
Bob Mottram 71beafd1a6 Only allow admin to create groups 2021-08-12 19:18:50 +01:00
Bob Mottram a6149853ca Variable name 2021-08-12 15:16:13 +01:00
Bob Mottram a9d10593f2 lower case content length 2021-08-12 13:52:21 +01:00
Bob Mottram caee3671f8 Handle lower case date 2021-08-12 13:44:44 +01:00
Bob Mottram 962dcbe9bd Try lower case for permissive headers 2021-08-12 13:42:01 +01:00
Bob Mottram 2782a4b8cf Unfollow when blocking 2021-08-11 22:00:01 +01:00
Bob Mottram 8e4b63e864 Send block activity from person options screen 2021-08-11 21:39:30 +01:00
Bob Mottram e1bb1b885e Check that etag exists 2021-08-11 20:48:13 +01:00
Bob Mottram ef108494b6 Use md5 for etags
Faster, and this doesn't need to be cryptographically accurate
2021-08-11 20:28:19 +01:00
Bob Mottram d29d77e248 Remove etag quotes if they exist 2021-08-11 19:46:32 +01:00
Bob Mottram f1ab45a668 Set etag with quotes 2021-08-11 19:40:59 +01:00
Bob Mottram 80162ec2cb Set last-modified header on avatar and media images 2021-08-11 19:21:19 +01:00
Bob Mottram 5577877f63 Variable name 2021-08-11 19:04:57 +01:00
Bob Mottram 0d4112910b Fix cookie 2021-08-11 19:03:01 +01:00
Bob Mottram 14e3b077d9 Include host in permissive header 2021-08-11 18:50:52 +01:00
Bob Mottram 3c56702e1e Make permissive headers more similar to mastodon instance 2021-08-11 18:46:37 +01:00
Bob Mottram 26ad5cbd0b Set origin 2021-08-11 16:01:51 +01:00
Bob Mottram e921710213 Host should be callingdomain for avatars and media 2021-08-11 15:46:24 +01:00
Bob Mottram b4ab0f38f7 Avatar images and media don't need sameSite to be strict 2021-08-11 15:40:37 +01:00
Bob Mottram 307a1c9e3b Search for wanted items 2021-08-10 09:44:56 +01:00
Bob Mottram fd4bde6f4b Redirects to timeline 2021-08-09 22:31:44 +01:00
Bob Mottram d6246ec017 wantedItems catalog endpoint for wanted items federation 2021-08-09 20:55:03 +01:00
Bob Mottram 872f545179 Wanted timeline on profile 2021-08-09 20:37:18 +01:00
Bob Mottram cbb55581e1 Wanted items timeline 2021-08-09 19:41:05 +01:00
Bob Mottram 641963dc05 Generalize the shares file so that there can be separate shares and wanted items 2021-08-09 14:07:32 +01:00
Bob Mottram 19649481b9 Detect conversationId field 2021-08-08 23:33:37 +01:00
Bob Mottram 361c8fb6bd Reintroduce conversation field 2021-08-08 17:52:32 +01:00
Bob Mottram 8cb31a10a8 Get currency symbol from price 2021-08-07 18:03:41 +01:00
Bob Mottram 28bac56561 Occasionally rotate the federated shared items token for the instance 2021-08-07 11:29:40 +01:00
Bob Mottram 5f10fc9a61 Fix federated shared items authorization 2021-08-05 13:43:21 +01:00
Bob Mottram 0f71fae658 Unit test for federated shared items 2021-08-05 12:24:24 +01:00
Bob Mottram ccc0d09ece Test for accessing catalog of local instance 2021-08-04 18:14:23 +01:00
Bob Mottram 521f431764 Revert "SameSite as Lax may be more secure. See https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site-00"
This reverts commit 71f02ebff6.
2021-08-04 11:28:51 +01:00
Bob Mottram 71f02ebff6 SameSite as Lax may be more secure. See https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site-00 2021-08-04 11:05:55 +01:00
Bob Mottram 5553e24c61 Make maximum likes more reasonable
This system is not trying to encourage numbers games
2021-08-03 11:07:52 +01:00
Bob Mottram af9a6cc6d1 Maximum likes displayed on posts is configurable 2021-08-03 11:04:45 +01:00
Bob Mottram dda607ff00 Remove debug 2021-08-02 21:26:09 +01:00
Bob Mottram 55fa97387e Test for system language 2021-08-02 21:03:37 +01:00
Bob Mottram 773208bffd Always get pages for http requests 2021-08-01 20:46:46 +01:00
Bob Mottram efbf3c0178 More debug 2021-08-01 20:43:20 +01:00
Bob Mottram ee365cff13 Returning first page 2021-08-01 20:28:07 +01:00
Bob Mottram 3469850199 Fix removal of post interactions 2021-08-01 20:19:45 +01:00
Bob Mottram 0be2e87ffa Check for outbox in path 2021-08-01 17:39:56 +01:00
Bob Mottram 789a9c374a Page number string 2021-08-01 17:27:10 +01:00
Bob Mottram 0f716bf081 Getting outbox pages 2021-08-01 15:08:02 +01:00
Bob Mottram faa747fc30 Unused endpoints 2021-07-31 21:33:28 +01:00
Bob Mottram e719fb1a16 Mystery endpoint 2021-07-31 21:23:58 +01:00
Bob Mottram 77de16d773 Extra nodeinfo endpoint 2021-07-31 21:16:36 +01:00
Bob Mottram 5c965a57e1 Alternative actor formats 2021-07-31 18:14:25 +01:00
Bob Mottram 4aa692e21d Remove test 2021-07-31 17:40:27 +01:00
Bob Mottram 2f2523212c Test with simplified actor 2021-07-31 17:34:04 +01:00
Bob Mottram d48aff4807 Unit test for following a group 2021-07-31 12:56:28 +01:00
Bob Mottram 71cabd74a2 Unfollowing group handles 2021-07-30 17:06:34 +01:00
Bob Mottram 9f58bb4b6f Change history search prefix so that it can be used for groups 2021-07-29 10:41:44 +01:00
Bob Mottram 7b0c9bc03d Ensure that permissions are enforced when removing shared items 2021-07-28 21:41:57 +01:00
Bob Mottram a77794468a Banner above shared item selected from left column 2021-07-28 20:37:51 +01:00
Bob Mottram 28b3d5b020 Get nickname from path 2021-07-28 20:05:19 +01:00
Bob Mottram 46985b4f0d Left column share links to individual post 2021-07-28 20:00:22 +01:00
Bob Mottram cdb629fd9d Remove debug 2021-07-28 16:15:23 +01:00
Bob Mottram 4b9c826a35 Encode message 2021-07-28 16:13:36 +01:00
Bob Mottram 383bc2f503 Debug 2021-07-28 16:08:42 +01:00
Bob Mottram f8a619a97d Debug 2021-07-28 16:00:28 +01:00
Bob Mottram a5a6f2da89 Removing a shared item 2021-07-28 15:27:20 +01:00
Bob Mottram c41aacba6f Removing share via its itemID 2021-07-28 15:22:06 +01:00
Bob Mottram 4972c68773 Debug 2021-07-28 15:15:54 +01:00
Bob Mottram fd092bd721 Tidying 2021-07-28 11:06:37 +01:00
Bob Mottram 35a1a3ecc9 csv encoding 2021-07-28 11:04:47 +01:00
Bob Mottram ec6820dd9a Item quantity as float 2021-07-28 10:44:19 +01:00
Bob Mottram 44d8afdf41 catalog defaults to json 2021-07-27 22:16:16 +01:00
Bob Mottram c729e85b9e path 2021-07-27 22:08:33 +01:00
Bob Mottram 347d769b0b User access to shared item catalog 2021-07-27 22:04:49 +01:00
Bob Mottram 6e7b508b80 Avoid encode error 2021-07-27 20:53:24 +01:00
Bob Mottram 4f58cc98c1 Replacing colon 2021-07-27 20:48:31 +01:00
Bob Mottram 13443a914d Create directory for shares 2021-07-27 20:03:02 +01:00
Bob Mottram 4cc0bd03d5 Currency placeholder 2021-07-27 19:54:27 +01:00
Bob Mottram f91d93ba05 Debug messages 2021-07-27 19:22:34 +01:00
Bob Mottram dd9f433edb Remove debug 2021-07-27 18:18:03 +01:00
Bob Mottram 3af2a44522 Set domains list 2021-07-27 18:13:44 +01:00
Bob Mottram 92962ad187 Debug 2021-07-27 18:06:44 +01:00
Bob Mottram cc7d7123a7 Field value 2021-07-27 18:01:47 +01:00
Bob Mottram 974b97dc87 Include federated shared items within shares timeline 2021-07-27 15:06:14 +01:00
Bob Mottram 0db65ae069 Convert dfc format to internal shares format 2021-07-27 13:55:44 +01:00
Bob Mottram 4369eac475 Federated shared items catalogs are searchable 2021-07-27 11:59:06 +01:00
Bob Mottram 12011bfdd4 Set shared item federation domains on edit profile screen 2021-07-26 22:01:48 +01:00
Bob Mottram d14055e304 Comments 2021-07-26 19:03:33 +01:00
Bob Mottram a5b97f1d92 Daemon for federating shared items 2021-07-26 18:54:13 +01:00
Bob Mottram c194c3996b Update shared item tokens from inbox posts 2021-07-26 15:41:06 +01:00
Bob Mottram 84ad6d9f4f Send shared items token to domains within the approved federation 2021-07-26 14:12:51 +01:00
Bob Mottram ebac11f502 Invert logic 2021-07-26 13:20:07 +01:00
Bob Mottram d9e32a0719 Alternative enpoint names 2021-07-26 12:33:08 +01:00
Bob Mottram 060efe5851 fast authorization of shared item tokens 2021-07-26 12:24:23 +01:00
Bob Mottram 43d7071ab8 Federation tokens in memory 2021-07-26 12:19:49 +01:00
Bob Mottram 2cfd87d802 Load shared items federation tokens from file 2021-07-26 12:13:59 +01:00
Bob Mottram 3c8e4bb5fb Shared item federation tokens stored as json 2021-07-26 11:00:54 +01:00
Bob Mottram 646254c8a9 Move token generation function 2021-07-26 10:40:51 +01:00
Bob Mottram 4c8b96efc1 Shared item federation uses a simple token 2021-07-26 10:08:36 +01:00
Bob Mottram cf9bffbed7 Generate tokens for shared item federation 2021-07-25 23:47:42 +01:00
Bob Mottram 5ce777eb1b Authentication from shared items federation token list 2021-07-25 22:18:38 +01:00
Bob Mottram f142d9f001 Return http code if not authorized 2021-07-25 15:28:58 +01:00
Bob Mottram 6ee7f2bfbf Return http code if not authorized 2021-07-25 15:27:27 +01:00
Bob Mottram 336c7e8bbb Use file extension to access different catalog formats 2021-07-25 15:19:04 +01:00
Bob Mottram 504101d17e Path on failure 2021-07-25 14:57:45 +01:00
Bob Mottram 102eaf3a00 Comments 2021-07-25 14:47:34 +01:00
Bob Mottram 52e3bc1e8d csv header 2021-07-25 14:43:28 +01:00
Bob Mottram 2c1cd07dcd csv catalog endpoint 2021-07-25 14:30:42 +01:00
Bob Mottram a47faed994 Comment 2021-07-25 14:12:31 +01:00
Bob Mottram dc7851ec6c Authorized access to catalog 2021-07-25 14:09:39 +01:00
Bob Mottram 5421facdb3 Unique share ID for the instance 2021-07-25 10:33:59 +01:00
Bob Mottram 5d5dab6d2f Functions for shares catalog endpoints 2021-07-24 23:08:11 +01:00
Bob Mottram 723e6e7a5e Check for food category before assigning dfc id 2021-07-24 16:05:21 +01:00
Bob Mottram 84bcc6d103 Assign product Ids to shared items 2021-07-24 15:38:43 +01:00
Bob Mottram 67747bad72 Add quantity to shared items 2021-07-24 12:30:46 +01:00
Bob Mottram a3fbea9a69 Validate passwords 2021-07-20 21:39:26 +01:00
Bob Mottram 1544e526c4 Ensure that line endings are removed from changed password 2021-07-20 15:39:43 +01:00
Bob Mottram bb3de9e173 Handling of understood languages prior to automatic translation 2021-07-20 14:33:27 +01:00
Bob Mottram 8f29e1a557 Remove html prior to automatic translation 2021-07-20 11:13:22 +01:00
Bob Mottram 223ee5a5f5 Tidying 2021-07-20 09:41:46 +01:00
Bob Mottram 845740bb01 Fields for changing password 2021-07-20 09:38:39 +01:00
Bob Mottram 3136f428d3 Only show libretranslate options to admin account 2021-07-19 20:58:06 +01:00
Bob Mottram 79b356a374 Support for libretranslate 2021-07-19 20:40:04 +01:00
Bob Mottram 33ce8fbfb5 Use cached actors when checking understood languages
This improves speed by reducing disk reads
2021-07-19 09:46:21 +01:00
Bob Mottram f48b63a892 Check that language for incoming post is understood by the account 2021-07-18 19:33:53 +01:00
Bob Mottram c0a3dd459b Setting permitted post languages on edit profile screen 2021-07-18 19:02:36 +01:00
Bob Mottram 50096bff11 Improve handling of contentMap within posts 2021-07-18 15:15:16 +01:00
Bob Mottram e3e1716f1f Support for contentMap when creating html posts 2021-07-18 12:48:29 +01:00
Bob Mottram 9daac007f7 contentMap language for pinned posts 2021-07-18 11:47:55 +01:00
Bob Mottram f5cbc7f8ee Support language within contentMap 2021-07-18 10:55:49 +01:00
Bob Mottram e4b9a27de0 Function for account directory 2021-07-13 22:59:53 +01:00
Bob Mottram ba77de00b2 Comment 2021-07-12 10:42:08 +01:00
Bob Mottram 13ba1565fa Comment 2021-07-12 10:41:04 +01:00
Bob Mottram 94fb8e5c81 Method name 2021-07-12 10:39:15 +01:00
Bob Mottram 7c270019b0 Only quote tags 2021-07-12 10:27:57 +01:00
Bob Mottram bdda8c9bf4 Quoted redirects 2021-07-12 10:19:53 +01:00
Bob Mottram 4b7ce92ae7 Quoted redirects 2021-07-12 10:18:15 +01:00
Bob Mottram 3231f3356b Error handling for redirect location 2021-07-12 09:59:58 +01:00
Bob Mottram 4a0dd19475 Don't encode 2021-07-12 09:48:14 +01:00