Commit graph

370 commits

Author SHA1 Message Date
silverpill f914702de9 Allow duplicate labels in extra profile fields 2022-04-12 15:11:26 +00:00
silverpill 4a1b75969f Replace actix-rt with tokio in scheduler module 2022-04-12 12:39:32 +00:00
silverpill 541894f4df Update clap to stable version 2022-04-10 19:51:03 +00:00
silverpill 30bd3d6a37 Migrate to actix 4.0 and tokio 1 2022-04-10 19:14:45 +00:00
silverpill ed68b728be Avoid deconstruction when using path extractor
Preparing for migration to actix 4.
2022-04-09 17:11:41 +00:00
silverpill 5b96464761 Update siwe-rs package 2022-04-09 12:02:59 +00:00
silverpill 8a6dbca214 Change /reblog method to return repost info instead of original post
This is done to comply with Mastodon API spec.
2022-04-08 18:55:51 +00:00
silverpill 2ebcc10dcb Add comments to home timeline SQL query 2022-04-08 18:55:29 +00:00
silverpill 956d594634 Add EIP-4361 link to readme 2022-03-29 08:01:24 +00:00
silverpill 60b683b657 Allow to hide replies from given author from home timeline 2022-03-09 20:42:02 +00:00
silverpill bdce305b24 Change default PostgreSQL port 2022-03-09 20:41:56 +00:00
silverpill ee7ae3cd4f Implement instance blocks 2022-02-23 23:38:43 +00:00
silverpill 0727b739ed Move HTTP signature verification to receive_activity() function 2022-02-23 23:38:00 +00:00
silverpill bf27903ee9 Drop database connection before starting HTTP server 2022-02-23 21:33:56 +00:00
silverpill 3a584f52b5 Add attachment type "video" 2022-02-23 17:55:53 +00:00
silverpill f14e762ee3 Allow to hide reposts made by given actor from home timeline 2022-02-23 16:55:25 +00:00
silverpill 0f47fa201d Move get_relationship function to mastodon_api module 2022-02-21 22:32:36 +00:00
silverpill c4a1da5349 Move RelationshipQueryParams type to types module 2022-02-21 15:27:25 +00:00
silverpill 8b4325ad96 Add CLI command that deletes old remote posts 2022-02-20 23:36:04 +00:00
silverpill 76106e4214 Delete media attached to descendants of posts when profile is deleted 2022-02-20 23:24:22 +00:00
silverpill 54277e410d Delete media attached to descendants of post when it is deleted 2022-02-20 23:24:17 +00:00
silverpill 9bc8997fb5 Identify incoming followers-only posts 2022-02-18 17:57:11 +00:00
silverpill 50630c004a Validate and clean extra fields when importing profile 2022-02-17 21:08:43 +00:00
silverpill 0993a3b38c Improve username validation 2022-02-17 20:39:18 +00:00
silverpill 82e24ad8b0 Validate and clean bio when profile is created or updated 2022-02-17 20:38:56 +00:00
silverpill 4e010f1698 Add profile data validation to get_or_import_profile_by_actor_id 2022-02-16 23:46:01 +00:00
silverpill 848de1d685 Set default tag type to Hashtag 2022-02-15 23:14:39 +00:00
silverpill 227e3d3729 Allow passwordless registration 2022-02-15 19:43:22 +00:00
silverpill 6ddfb5b52d Do EIP-4361 verification at signup 2022-02-15 01:35:02 +00:00
silverpill e8a29a3af1 Implement EIP-4361 authentication 2022-02-14 23:16:00 +00:00
silverpill d3e3c1eb3e Refactor struct conversion in create_account() handler 2022-02-14 22:08:35 +00:00
silverpill e756bbacf4 Add tests for note visibility detection 2022-02-13 20:12:31 +00:00
silverpill a5d3aa488b Require replies to non-public posts to have direct visibility 2022-02-13 18:16:59 +00:00
silverpill 79e7d960fb Log more details when processing non-public note 2022-02-13 16:42:01 +00:00
silverpill 226fc49b86 Allow non-standard wrap width when parsing public keys in PEM format 2022-02-13 15:44:28 +00:00
silverpill e48a8999f5 Make /api/v1/accounts return validation error if user already exists 2022-02-11 21:32:37 +00:00
silverpill 0198a944ac Log successful login attempts 2022-02-11 20:40:56 +00:00
silverpill 49dc82fb0a Add decoding error type to VerificationError enum 2022-02-11 20:40:36 +00:00
silverpill 75fa39718c Add http_cors_allowlist configuration option 2022-02-10 23:35:23 +00:00
silverpill 6fc319f7dd Validate content of incoming Note objects 2022-02-09 13:53:11 +00:00
silverpill 2747e7b174 Add post character limit config option 2022-02-08 21:19:39 +00:00
silverpill bf2e38a397 Add User-Agent header to fetcher requests 2022-02-08 19:51:40 +00:00
silverpill f1fd0af6bc Remove blockchain_contract_name property from instance info 2022-02-08 18:32:54 +00:00
silverpill 0a2a145807 Optimize database queries in can_view_post() 2022-02-08 18:25:48 +00:00
silverpill 7d89f65b37 Hide posts that user is not allowed to view from search results 2022-02-08 18:00:30 +00:00
silverpill a63da82b85 Allow cross-origin requests from localhost in production environment
https://codeberg.org/silverpill/mitra/issues/5
2022-02-08 13:16:46 +00:00
silverpill 0a8fbdafba Update readme 2022-02-08 01:48:59 +00:00
silverpill b03b6e52aa Return empty array in response to pinned statuses query
https://codeberg.org/silverpill/mitra/issues/6
2022-02-08 01:30:58 +00:00
silverpill 9591be4df0 Use Pleroma-compliant instance version in /api/v1/instance
https://codeberg.org/silverpill/mitra/issues/4
2022-02-08 01:13:21 +00:00
silverpill d9f0095787 Allow to reply to public post with a direct message 2022-02-07 01:06:18 +00:00