Commit graph

540 commits

Author SHA1 Message Date
5ef024d923
Fuck blockchain 2023-04-08 21:20:12 +02:00
silverpill
8708abd9cd Reject unsolicited public posts 2023-04-06 23:00:08 +00:00
silverpill
278950252e Refactor get_object_visibility function 2023-04-06 16:14:35 +00:00
silverpill
970071a9f0 Validate object ID length before saving post to database 2023-04-06 15:54:21 +00:00
silverpill
9e5672929b Process incoming Move() activities in background 2023-04-05 19:37:59 +00:00
silverpill
dcaa2227d2 Support account migration from Mastodon 2023-04-05 19:33:58 +00:00
silverpill
b0bf3cf594 Populate alsoKnownAs property on actor object with declared aliases 2023-04-05 00:08:06 +00:00
silverpill
13df9e0478 Create /api/v1/accounts/aliases/all API endpoint 2023-04-04 23:56:38 +00:00
silverpill
edebae0dc6 Validate actor aliases before saving into database 2023-04-02 21:58:44 +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
dd0c53c5e9 Add federation.fetcher_timeout and federation.deliverer_timeout configuration parameters 2023-03-28 11:27:14 +04: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
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
ef852d781e Move profile data cleaning code to validators::profiles module 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
521c2cbe41 Move mention_to_address function to webfinger::types module 2023-03-23 19:19:17 +00:00
silverpill
21135d7704 Move get_post_by_object_id to activitypub::fetcher::helpers module 2023-03-22 23:13:31 +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
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
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
50f31e96fc Add federation.onion_proxy_url configuration parameter 2023-03-07 14:53:24 +00:00
silverpill
0817177282 Move federation client builders to activitypub::http_client module 2023-03-06 18:50:55 +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
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
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