Commit graph

60 commits

Author SHA1 Message Date
silverpill f41b205084
Add support for content warnings 2023-04-24 16:56:59 +02:00
silverpill 01cefa6ea1
Disable spam detection when importing activities from outbox 2023-04-24 16:49:52 +02:00
silverpill c022e0d320
Add actor validation to Update(Note) and Undo(Follow) handlers 2023-04-24 16:46:49 +02:00
silverpill 55c0b1eb6b
Re-fetch object if attributedTo value doesn't match actor of Create activity 2023-04-24 16:46:22 +02:00
silverpill 8533a892bf
Add emoji count check to profile data validator 2023-04-24 16:15:21 +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 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 462da87e9b Create DbActor type and use it to represent actor_profile.actor_json column value 2023-03-27 17:43:01 +00: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 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 f76438b6f8 Move DbActorProfile::actor_id function to activitypub::identifiers 2023-03-18 18:29:45 +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 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 721238d897 Deserialize object tag to Vec<Value> 2023-02-28 17:02:29 +00:00
silverpill baec22272d Follow FEP-e232 links when importing post 2023-02-26 23:04:56 +00:00
silverpill 10f2596830 Move config parser to mitra-config crate 2023-02-19 00:39:15 +00:00
silverpill 7d3c558ede Move utils to mitra-utils crate 2023-02-18 23:12:36 +00:00
silverpill 151b068d97 Make maximum size of media attachment configurable 2023-02-04 22:03:32 +00:00
silverpill 5a3ef41277 Append attachment URL to post content if attachment is too large 2023-01-31 19:03:03 +00:00
silverpill 01c894da9d Separate object URL handling from content validation 2023-01-31 19:03:03 +00:00
silverpill bc19a524c4 Replace post attachments and other related objects when processing Update(Note) activity 2023-01-31 18:47:34 +00:00
silverpill 86beb532e2 Refactor handle_note() function 2023-01-31 14:18:46 +00:00
silverpill f55431f8b8 Improve some error descriptions 2023-01-29 20:04:23 +00:00
silverpill b958b8fb4c Save sizes of media attachments and other files to database 2023-01-21 19:52:32 +00:00
silverpill e3b51d0752 Validate emoji name before saving 2023-01-21 12:41:37 +00:00
silverpill 99d45ee048 Create custom type for emoji images 2023-01-20 22:11:01 +00:00
silverpill 6c6eb731f9 Use usize type for file sizes 2023-01-20 01:00:15 +00:00
silverpill c26fc9235d Group imports in some modules 2023-01-19 22:00:04 +00:00
silverpill 441264f34c Allow emojis with image/gif media type 2023-01-18 16:45:51 +00:00
silverpill 01f56d9ef7 Use re-exported tokio_postgres::GenericClient trait 2023-01-18 01:01:45 +00:00
silverpill 0e68ea263c Increase max emoji size to 250 kB 2023-01-17 20:47:34 +00:00
silverpill fcb6554ebb Don't download HTML pages attached by GNU Social 2023-01-17 19:16:46 +00:00
silverpill 56e75895bd Download custom emojis contained in remote posts 2023-01-17 16:47:09 +00:00
silverpill 7b8a56dd8f Support "Public" audience identifier 2023-01-17 00:51:35 +00:00
silverpill 5064afd766 Change max actor image size to 5 MB 2023-01-16 20:34:24 +00:00
silverpill 4d29c83365 Validate emoji tags 2023-01-15 02:14:02 +00:00
silverpill 143879caf9 Ignore deserialization errors when parsing object tags 2023-01-15 02:07:52 +00:00
silverpill 41fdb8abb0 Rename activitypub::activity module to activitypub::types 2023-01-14 23:31:38 +00:00
silverpill 53138ea1c7 Don't fetch HTML pages attached by GNU Social 2023-01-14 19:38:28 +00:00
silverpill 7c07cd79bc Use "mediaType" property value to determine file extension when saving downloaded media 2023-01-14 02:10:06 +00:00
silverpill 85dbb6f392 Save downloaded media as "unknown" if its media type is not supported 2023-01-14 02:08:28 +00:00