Commit graph

1110 commits

Author SHA1 Message Date
silverpill
edebae0dc6 Validate actor aliases before saving into database 2023-04-02 21:58:44 +00:00
silverpill
300d2ef6f8 Increase maximum number of custom emojis per post to 50 2023-04-01 23:24:52 +00:00
silverpill
9a32fb9c80 Remove activity from queue if handler times out 2023-03-31 17:56:13 +00:00
silverpill
6604ea8a2b Limit number of mentions and links in remote posts 2023-03-31 17:05:41 +00:00
silverpill
95daa94a97 Move contents of database and models modules to mitra-models crate 2023-03-31 00:20:19 +00:00
silverpill
006665f6fb Save Monero wallet after generating addresses or sending transactions 2023-03-30 13:22:25 +00:00
silverpill
348149bbaa Set fetcher timeout to 5 seconds when processing search queries 2023-03-28 07:57:28 +00:00
silverpill
dd0c53c5e9 Add federation.fetcher_timeout and federation.deliverer_timeout configuration parameters 2023-03-28 11:27:14 +04:00
silverpill
378d94e7b8 Don't reopen monero wallet on each subscription monitor run 2023-03-28 00:11:48 +00:00
silverpill
8cfb2318a2 Order attachments by creation date 2023-03-27 20:50:48 +00:00
silverpill
462da87e9b Create DbActor type and use it to represent actor_profile.actor_json column value 2023-03-27 17:43:01 +00:00
silverpill
4f9a99e6f2 Use "aliases" property in Move() activity handler 2023-03-27 02:17:59 +04:00
silverpill
eb1f815548 Use manually_approves_followers field in Account::from_profile 2023-03-27 02:17:59 +04:00
silverpill
b85a0fb7ac Refactor import_post function 2023-03-26 01:12:03 +00:00
silverpill
5e1f441e8b Add limits.media.emoji_size_limit configuration parameter 2023-03-25 23:11:11 +00:00
silverpill
0521f1f731 Restart stalled background jobs 2023-03-25 20:23:19 +00:00
silverpill
5ba8b8d6ae Move microsyntax parsers to mastodon_api::statuses::microsyntax module 2023-03-25 18:19:10 +00:00
silverpill
ac6491d030 Set database connection pool size in mitra::main 2023-03-25 17:34:50 +00:00
silverpill
08d7482f32 Increase remote emoji size limit to 500 kB 2023-03-25 12:24:33 +00:00
silverpill
399a632a88 Prune remote emojis in background 2023-03-25 12:18:22 +00:00
silverpill
ef852d781e Move profile data cleaning code to validators::profiles module 2023-03-25 11:28:48 +00:00
silverpill
441850dd21 Allow emoji names containing hyphens 2023-03-25 11:28:48 +00:00
silverpill
73b576c643 Move normalize_hashtag function to activitypub::handlers::create 2023-03-25 11:28:48 +00:00
silverpill
f5dd0a17c9 Move all validators to validators module 2023-03-25 11:28:48 +00:00
silverpill
37ab3dc456 Add prune-remote-emojis command 2023-03-25 11:26:52 +00:00
silverpill
76e85a3b7b Fix error in emoji update SQL query 2023-03-24 22:54:51 +00:00
silverpill
521c2cbe41 Move mention_to_address function to webfinger::types module 2023-03-23 19:19:17 +00:00
silverpill
3b5c8a4131 Remove Role::from_name function 2023-03-23 00:29:32 +00:00
silverpill
21135d7704 Move get_post_by_object_id to activitypub::fetcher::helpers module 2023-03-22 23:13:31 +00:00
silverpill
39ab6bbb13 Don't allow migration if user doesn't have identity proofs 2023-03-21 18:14:24 +00:00
silverpill
cdb304a8b7 Update profile page URL template to match mitra-web 2023-03-21 16:48:14 +00:00
silverpill
848a0685de Add configuration option that disables federation 2023-03-21 16:17:44 +00:00
silverpill
608ec096cd Add /api/v1/instance/peers API endpoint 2023-03-20 17:11:00 +00:00
silverpill
e3ee144889 Grant delete_any_post and delete_any_profile permissions to admin role 2023-03-19 19:21:31 +00:00
silverpill
9a513c928f Add account_index parameter to Monero configuration 2023-03-18 19:02:54 +00:00
silverpill
7640598431 Replace DbActorProfile::actor_address with ActorAddress::from_profile 2023-03-18 18:29:56 +00:00
silverpill
f76438b6f8 Move DbActorProfile::actor_id function to activitypub::identifiers 2023-03-18 18:29:45 +00:00
silverpill
306fd7b75b Move DbActorProfile::actor_url function to activitypub::identifiers 2023-03-18 18:29:34 +00:00
silverpill
a515af1111 Move Post::object_id function to activitypub::identifiers 2023-03-18 18:29:15 +00:00
silverpill
f27b2e13eb Add webclient redirection rule for /@username routes 2023-03-18 14:09:27 +00:00
silverpill
a07d7ce34a Make webclient-to-object redirects work for remote profiles and posts 2023-03-18 13:38:46 +00:00
silverpill
f037a4d58c Move media deletion helper to media module 2023-03-18 11:27:16 +00:00
silverpill
b56e11e81d Add "aliases" column to actor profile table
It is used to store unverified aliases,
and potentially can be used for verified aliases too.
2023-03-17 20:27:50 +00:00
silverpill
c80bfccd6a Add "manually_approves_followers" column to actor_profile table 2023-03-17 19:20:42 +00:00
silverpill
0b65e7473e Move DID types to mitra-utils crate 2023-03-16 17:59:45 +00:00
silverpill
1637e38ee4 Add fep-e232 feature flag 2023-03-15 20:05:21 +00:00
silverpill
43b56be722 Remove verify_eip191_identity_proof and verify_ed25519_signature functions 2023-03-14 23:28:12 +00:00
silverpill
1d4bb200d2 Move identity::signatures to json_signatures module 2023-03-14 20:53:25 +00:00
silverpill
8b8f1bb678 Ignore emojis with non-unique names in remote posts 2023-03-14 18:48:36 +00:00
silverpill
a3a4579e03 Log invalid emoji names 2023-03-14 18:42:21 +00:00
silverpill
c7fd3ddc83 Remove hardcoded upload size limit 2023-03-14 15:17:56 +00:00
silverpill
c87c5da17c Rename SignatureType to ProofType 2023-03-13 21:29:48 +00:00
silverpill
d4f701332f Use numbers to represent identity proof type in database 2023-03-13 21:29:40 +00:00
silverpill
8400241ab4 Add audio/ogg and audio/x-wav to the list of supported media types 2023-03-12 20:14:58 +00:00
silverpill
43d084de8d Enable audio and video uploads 2023-03-12 20:13:53 +00:00
silverpill
2b6de17fb9 Save latest ethereum block number to database instead of file 2023-03-12 17:13:38 +00:00
silverpill
0e9879bacb Remove ability to switch from Ethereum devnet to another chain without resetting subscriptions
Assuming migration is over (migration started at 2eb7ec2f64).
2023-03-12 15:53:40 +00:00
silverpill
138c1e915e Allow ! after hashtags and mentions 2023-03-11 17:12:37 +00:00
silverpill
268707a78a Disable post tokenization feature 2023-03-11 14:40:23 +00:00
silverpill
b5365099a4 Store NFT monitor state in database 2023-03-11 10:33:52 +00:00
silverpill
a300a822ec Create internal_property database table 2023-03-11 10:33:48 +00:00
silverpill
50f31e96fc Add federation.onion_proxy_url configuration parameter 2023-03-07 14:53:24 +00:00
silverpill
94a5f3a3cd Implement NodeInfo 2.1 2023-03-06 19:50:12 +00:00
silverpill
0817177282 Move federation client builders to activitypub::http_client module 2023-03-06 18:50:55 +00:00
silverpill
f17c9d9f76 Add CLI command for viewing unreachable actors 2023-03-06 00:53:57 +00:00
silverpill
522fd5bafa Refresh emoji caches when emoji is deleted 2023-03-05 19:42:46 +00:00
silverpill
452de34780 Support audio attachments 2023-03-05 19:29:29 +00:00
silverpill
ba1c694294 Add "emojis" field to Mastodon API Account entity 2023-03-05 19:09:58 +00:00
silverpill
70c2d2aa25 Create profile_emoji database table 2023-03-04 21:12:02 +00:00
silverpill
bd53e147ca Save emojis attached to actor objects 2023-03-03 23:22:04 +00:00
silverpill
4204350375 Deserialize actor tag to Vec<Value> 2023-03-03 22:11:41 +00:00
silverpill
6335e216a9 Add registration.default_role configuration option 2023-03-03 18:14:02 +00:00
silverpill
1b1e2a1521 Allow to add notes to generated invite codes 2023-03-02 17:24:32 +00:00
silverpill
721238d897 Deserialize object tag to Vec<Value> 2023-02-28 17:02:29 +00:00
silverpill
849b201ab9 Deserialize actor attachments into Vec instead of Option<Vec> 2023-02-28 00:34:23 +00:00
silverpill
82b6c4e7cf Add /api/v1/accounts/{account_id}/aliases API endpoint 2023-02-26 23:18:45 +00:00
silverpill
baec22272d Follow FEP-e232 links when importing post 2023-02-26 23:04:56 +00:00
silverpill
49b0011a9c Fetch missing profiles before doing follower migration 2023-02-26 20:21:21 +00:00
silverpill
e02ebebe02 Process follower migration request in background 2023-02-26 20:16:43 +00:00
silverpill
62069dc011 Increase number of delivery attempts and increase intervals between them 2023-02-26 20:16:39 +00:00
silverpill
c201f3ea2b Store information about failed activity deliveries in database 2023-02-26 14:49:01 +00:00
silverpill
e4254e7a3d Add "error" and "error_description" fields to Mastodon API error responses 2023-02-25 23:38:42 +00:00
silverpill
971b541826 Change path of user's Atom feed to /feeds/users/{username} 2023-02-25 21:25:25 +00:00
silverpill
ca2e541ff5 Store delivery statuses in delivery job data
Preparing for migration to a new delivery queue mechanism.
2023-02-25 19:28:23 +00:00
silverpill
0f3c247069 Put activities generated by CLI commands in a queue 2023-02-25 19:28:23 +00:00
silverpill
49f51f44d8 Replace magic numbers in activitypub::queues module with constants 2023-02-25 19:28:19 +00:00
silverpill
f5c012769f Prefer Group actor when doing webfinger query on Lemmy server 2023-02-24 13:12:38 +00:00
silverpill
f66e0b812f Make webfinger response compatible with GNU Social account lookup 2023-02-24 11:15:44 +00:00
silverpill
56e0ed8f5d Add empty spoiler_text property to Mastodon API Status object 2023-02-24 00:26:39 +00:00
silverpill
bacb8c8380 Prevent delete-extraneous-posts command from removing locally-linked posts 2023-02-23 21:43:37 +00:00
silverpill
0245eb59a2 Set deliverer timeout to 30 seconds 2023-02-22 21:54:08 +00:00
silverpill
872fe8fef3 Set fetcher timeout to 3 minutes 2023-02-22 21:48:19 +00:00
silverpill
227eef2d6b Add Content-Security-Policy and X-Content-Type-Options headers to all responses 2023-02-22 17:56:47 +00:00
silverpill
e1e9851d5c Make media URLs in Mastodon API responses relative to current origin 2023-02-22 17:56:43 +00:00
silverpill
c796cddff8 Change order of parameters in some functions 2023-02-22 17:30:31 +00:00
silverpill
2b5d4562aa Make activities pass JSON-LD validation 2023-02-22 17:30:28 +00:00
silverpill
50176b00cc Make actor objects pass JSON-LD validation 2023-02-22 17:29:36 +00:00
silverpill
2f621201f8 Accept webfinger requests where "resource" is instance actor ID 2023-02-19 22:18:14 +00:00
silverpill
21054de712 Make /api/v1/statuses endpoint compatible with Mastodon clients 2023-02-19 19:38:27 +00:00
silverpill
e8ea52adba Move create_auth_error_handler function to http module 2023-02-19 17:10:29 +00:00