Commit graph

945 commits

Author SHA1 Message Date
silverpill
8deea0c867 Save submitted identity proofs to database 2022-04-26 20:43:39 +00:00
silverpill
fd6b71073a Add IdentityProof type 2022-04-26 19:56:32 +00:00
silverpill
356592bc71 Add views for generating address ownership proof 2022-04-26 19:56:26 +00:00
silverpill
e697461e70 Add function that performs address ownership verification 2022-04-26 19:32:08 +00:00
silverpill
fc60bb78f2 Implement ToString and FromStr traits for SignatureData 2022-04-26 19:32:02 +00:00
silverpill
bffe3bbe7d Don't hash initial message when making EIP-191 signature 2022-04-22 21:27:53 +00:00
silverpill
a97456d77a Pass Actor object instead of Value when creating/updating profile 2022-04-21 23:10:30 +00:00
silverpill
a9504de10d Add json_from_sql and json_to_sql macros 2022-04-21 23:10:24 +00:00
silverpill
536c7ecb21 Bump web3 to 0.18.0 2022-04-20 17:30:30 +00:00
silverpill
e4c5440ec2 Increase max number of extra profile fields to 20 2022-04-20 14:41:25 +00:00
silverpill
997d9257af Improve descriptions of database errors 2022-04-20 14:05:09 +00:00
silverpill
04e851025b Enforce uniqueness of actor ID 2022-04-20 14:03:13 +00:00
silverpill
0715b7d64f Use actor ID for href field in mention tag
Mastodon also does this in latest version.
2022-04-20 14:02:39 +00:00
silverpill
ffdda2ac51 Add recover_address() function
It can be used to recover ethereum address from signature.
2022-04-19 22:59:09 +00:00
silverpill
0d6807e5a2 Move address_to_string to ethereum::utils module 2022-04-16 22:32:50 +00:00
silverpill
c0837bbf77 Create Atom feeds for local users 2022-04-16 19:37:45 +00:00
silverpill
aa997e3a82 Make activity IDs deterministic 2022-04-14 18:33:18 +00:00
silverpill
0bc3c32fcd Allow value of "attachment" property to be an object 2022-04-14 15:58:29 +00:00
silverpill
56d1ebf9e5 Add include_reposts parameter to get_posts_by_author() func 2022-04-13 21:26:30 +00:00
silverpill
78d66f8a06 Prevent interactions with reposts 2022-04-13 21:26:30 +00:00
silverpill
2fda205dbf Rename process_note() to import_post() and change its error type to ImportError 2022-04-13 19:19:19 +00:00
silverpill
ec44fce526 Write warning to log when processing remote post of unexpected type 2022-04-13 19:00:27 +00:00
silverpill
5ec92376a1 Bump version to 0.5.0 2022-04-13 11:37:47 +00:00
silverpill
1f5014a9c3 Update readme and add FEDERATION.md 2022-04-13 11:00:04 +00:00
silverpill
513f10ab4f Write warning to log when encountering unexpected actor property type 2022-04-12 18:34:01 +00:00
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