Commit graph

52 commits

Author SHA1 Message Date
silverpill a2f7140164 Fix rendering of mentions in bio 2022-12-20 00:57:45 +00:00
silverpill ee7a61833d Render markdown contained in bio and profile metadata values 2022-12-18 21:25:25 +00:00
silverpill 9872e40399 Fix clippy warnings 2022-12-18 17:52:40 +00:00
silverpill 67b1729621 Add comment about HTML headings and Pleroma 2022-12-17 23:44:00 +00:00
silverpill 533cd81aa6 Switch to rust edition 2021 2022-12-15 19:54:51 +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 7d204ab150 Remove unknown classes during HTML sanitization 2022-11-29 16:46:00 +00:00
silverpill 5ff2d19837 Add expires_at field to Invoice object
Also increase timeout to 3 hours

https://codeberg.org/silverpill/mitra/issues/23
2022-11-25 15:04:46 +00:00
silverpill 3f3518001d Implement Display trait for ChainId and DidPkh 2022-11-22 22:41:23 +00:00
silverpill 5974ac8618 Move base64 encoding/decoding out of RSA signing functions 2022-11-19 15:52:16 +00:00
silverpill bd4a9a0de9 Move multibase encoder and decoder to utils::multibase 2022-11-18 23:05:27 +00:00
silverpill 43f99b597a Fix parsing of ordered lists 2022-11-13 21:31:19 +00:00
silverpill c11daa21a0 Rename utils::crypto module to crypto_rsa 2022-11-13 21:31:04 +00:00
silverpill 4d85638d8c Move password utils to utils::passwords module 2022-11-13 21:30:59 +00:00
silverpill cd93858488 Use canonicalized JSON for identity claims 2022-11-11 00:53:23 +00:00
silverpill acad0f260b Perform post content cleaning at the end of validation process 2022-10-25 23:26:42 +00:00
silverpill 862415d49b Refactor http_signatures module 2022-10-23 23:49:16 +00:00
silverpill 9d671344e6 Don't use rng when generating private keys in tests 2022-10-23 17:56:32 +00:00
silverpill f92428e509 Add support for SOCKS proxy 2022-10-19 20:29:24 +00:00
silverpill f0dace197b Allow instance URI to be onion, i2p or yggdrasil address 2022-10-18 19:10:30 +00:00
silverpill 09d025d461 Add get_hostname function 2022-10-18 00:06:26 +00:00
silverpill a422b1bf8a Preserve mentions when converting markdown into html 2022-10-16 20:08:31 +00:00
silverpill a771e5e4fa Add support for object link microsyntax
Example: [[https://example.com/objects/1]].
2022-10-15 21:52:36 +00:00
silverpill b26b2419ed Add support for posts authored in markdown 2022-10-14 16:00:39 +00:00
silverpill c95e983a3d Remove images from remote posts
To prevent tracking.
2022-10-13 11:01:54 +00:00
silverpill 0a62fdac2b Remove target="_blank" and add rel="noopener" during HTML cleaning 2022-10-09 13:06:57 +00:00
silverpill 0548e6e72a Disallow <code> tags in bio 2022-10-06 22:50:38 +00:00
silverpill 2eb7ec2f64 Add chain ID column to subscription table
Set chain ID to "eip155:31337" for existing entries.
2022-08-31 20:42:56 +00:00
silverpill c5c3911de6 Require chain ID field in payment options of ethereum type 2022-08-29 22:28:34 +00:00
silverpill 690a03946e Use Currency enum to refer to CAIP-2 namespaces instead of chain IDs 2022-08-29 15:12:18 +00:00
silverpill 8df8fd3c8c Add Monero to currencies enum 2022-08-29 12:12:26 +00:00
silverpill 3b56b29785 Refactor utils::files and move upload helpers to mastodon_api::uploads module 2022-08-18 21:26:24 +00:00
silverpill 596871e6e3 Rewrite wallet address validator to work with non-ethereum addresses 2022-08-15 15:45:21 +00:00
silverpill c4e5438ac2 Parse chain ID into CAIP-2 ChainId type during blockchain config deserialization 2022-08-10 11:14:17 +00:00
silverpill 46526fd4be Add currency() method to DidPkh type 2022-08-04 15:44:48 +00:00
silverpill af0563759d Add CAIP-2 chain ID type 2022-08-04 15:38:26 +00:00
silverpill 3c8c0c7163 Move currencies module to utils 2022-08-04 12:34:31 +00:00
silverpill da6ceadd51 Add CLI command for deleting unused media attachments 2022-05-07 21:10:35 +00:00
silverpill fac0172159 Generate RSA key for instance actor automatically on the first run 2022-04-30 20:03:21 +00:00
silverpill 83fbbefaab Add test for get_local_actor() 2022-04-26 22:35:39 +00:00
silverpill c0837bbf77 Create Atom feeds for local users 2022-04-16 19:37:45 +00:00
silverpill 226fc49b86 Allow non-standard wrap width when parsing public keys in PEM format 2022-02-13 15:44:28 +00:00
silverpill 6fc319f7dd Validate content of incoming Note objects 2022-02-09 13:53:11 +00:00
silverpill c4a0f12555 Keep "pre" and "code" tags when cleaning post content 2022-01-28 00:42:36 +00:00
silverpill f9fca604a9 Make media_type property on Attachment type optional 2021-12-29 15:07:19 +00:00
silverpill e71bb9585a Refactor utils::files module 2021-12-29 14:34:23 +00:00
silverpill 38ed905f47 Use profile importer in verify_http_signature function 2021-12-28 20:54:21 +00:00
silverpill 12c21d86f8 Use ULIDs instead of v4 UUIDs for identifiers 2021-12-02 01:36:35 +00:00
silverpill c473070fd4 Configure linter and fix its warnings 2021-11-13 17:37:31 +00:00
silverpill b1776b9520 Move invite code generator to users::utils module 2021-10-02 16:32:57 +00:00