Commit graph

33 commits

Author SHA1 Message Date
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
silverpill
51cb72d142 Add test for get_note_author_id 2023-01-13 01:31:45 +00:00
silverpill
cbc78f9532 Support "as:Public" audience identifier 2023-01-13 01:31:45 +00:00
silverpill
7218864563 Don't stop activity processing on invalid local mentions 2023-01-11 21:55:40 +00:00
silverpill
2385601e12 Create get_or_import_profile_by_actor_address helper function 2023-01-11 21:55:35 +00:00
silverpill
fe395480eb Set limit on number of media files that can be attached to post 2023-01-06 16:55:38 +00:00
silverpill
30857868a0 Write tag value to log if tag type is Emoji 2023-01-04 17:40:17 +00:00
silverpill
64dbd8ff26 Accept attachments with type Video
Video attachments are used in PixelFed.
2022-12-10 19:01:11 +00:00
silverpill
04ee3e5106 Move activity parsing to handlers 2022-12-09 21:16:53 +00:00
silverpill
84c93fecf1 Refactor receive_activity() function 2022-12-08 22:11:15 +00:00
silverpill
d3db42ec9e Rename modules 2022-12-07 21:00:54 +00:00
Renamed from src/activitypub/handlers/create_note.rs (Browse further)