Commit graph

167 commits

Author SHA1 Message Date
silverpill f41b205084
Add support for content warnings 2023-04-24 16:56:59 +02:00
silverpill 533ef48393
Check mention and link counts when creating post 2023-04-24 16:15:45 +02:00
silverpill 8533a892bf
Add emoji count check to profile data validator 2023-04-24 16:15:21 +02:00
Rafael Caricio c5dbb0257f
No eth support 2023-04-24 16:10:08 +02: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 5ba8b8d6ae Move microsyntax parsers to mastodon_api::statuses::microsyntax module 2023-03-25 18:19:10 +00:00
silverpill f5dd0a17c9 Move all validators to validators module 2023-03-25 11:28:48 +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 268707a78a Disable post tokenization feature 2023-03-11 14:40:23 +00:00
silverpill e4254e7a3d Add "error" and "error_description" fields to Mastodon API error responses 2023-02-25 23:38:42 +00:00
silverpill 56e0ed8f5d Add empty spoiler_text property to Mastodon API Status object 2023-02-24 00:26:39 +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 21054de712 Make /api/v1/statuses endpoint compatible with Mastodon clients 2023-02-19 19:38:27 +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 1d16fb45a5 Change /api/v1/{status_id}/context response format to match Mastodon API 2023-02-13 00:28:34 +00:00
silverpill 23b44ce0db Add /api/v1/{status_id}/thread API endpoint 2023-02-12 23:24:28 +00:00
silverpill 6945ded963 Group imports 2023-02-12 23:07:19 +00:00
silverpill e784476344 Add /api/v1/custom_emojis endpoint 2023-02-04 21:59:59 +00:00
silverpill 86beb532e2 Refactor handle_note() function 2023-01-31 14:18:46 +00:00
silverpill 2ea14635d2 Implement role system
https://codeberg.org/silverpill/mitra/issues/25
2023-01-25 23:59:39 +00:00
silverpill d09770913b Replace client-side tag URLs with collection IDs 2023-01-22 15:32:23 +00:00
silverpill be67972760 Add emojis to post previews 2023-01-21 23:00:21 +00:00
silverpill 75579eae4f Add support for emoji shortcodes 2023-01-21 22:56:46 +00:00
silverpill 01f56d9ef7 Use re-exported tokio_postgres::GenericClient trait 2023-01-18 01:01:45 +00:00
silverpill 578629f8bd Add emoji array to Status object 2023-01-17 16:47:13 +00:00
silverpill 56e75895bd Download custom emojis contained in remote posts 2023-01-17 16:47:09 +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 5c9aa0f148 Always put outgoing activities in a queue 2023-01-04 19:36:57 +00:00
silverpill bd158b0a1f Use background job to deliver Create(), Announce() and Like() activities 2023-01-01 20:25:20 +00:00
silverpill a23a555a05 Add API method for generating post previews
https://codeberg.org/silverpill/mitra/issues/12
2022-12-20 22:47:52 +00:00
silverpill f7d9173cce Create parse_microsyntaxes() helper 2022-12-20 15:38:07 +00:00
silverpill 748521b5ce Refactor create_view() 2022-12-20 00:59:57 +00:00
silverpill 20e965a655 Remove PostCreateData.clean() 2022-12-20 00:59:57 +00:00
silverpill 2232bf814c Limit the number of database queries in find_linked_posts() 2022-12-20 00:59:57 +00:00
silverpill 04e74a6e05 Ignore object link if referenced post doesn't exist
Made it behave similarly to mentions.
2022-12-20 00:59:57 +00:00
silverpill 43a70fb93f Drop support for links property in status data 2022-12-18 17:52:46 +00:00
silverpill 0465aaf0c7 Don't auto-mention author of a linked post 2022-12-18 17:52:46 +00:00
silverpill 533cd81aa6 Switch to rust edition 2021 2022-12-15 19:54:51 +00:00
silverpill 2714378f22 Don't auto-mention author of a linked post 2022-12-10 19:01:11 +00:00
silverpill a3c3f97759 Rename modules 2022-12-06 23:29:59 +00:00
silverpill d1939b10d5 Move DatabaseError to database module 2022-12-03 22:57:09 +00:00
silverpill 4185cbefb0 Rename Pool type to DbPool 2022-12-03 21:30:24 +00:00
silverpill 4ec5cf0f9b Render instance description to HTML
https://codeberg.org/silverpill/mitra-web/issues/3
2022-12-01 22:04:46 +00:00
silverpill 262b910638 Rename instance.host() to instance.hostname() 2022-11-24 13:27:10 +00:00