Commit graph

115 commits

Author SHA1 Message Date
8439512f1a Add snowflake timestamp converter functions 2023-11-23 15:51:25 +13:00
8026cf0cad Coverage for m->d ordered list start attribute 2023-11-23 13:41:31 +13:00
53a009ca45 m->d: Users who aren't joined can be mentioned
This works by writing @name in the message, where `name` is the username
or displayname of the person in the guild you want to mention. If it
matched, the person will be joined and mentioned on their side.

Unfortunately this requires you to guess the person's name, and may lead
to embarrassment if it doesn't activate as you intended. Good luck!
2023-11-23 13:41:02 +13:00
e73de60d77 m->d: Strip colons from user mentions 2023-10-28 00:37:20 +13:00
afbbe0da3d Fix more edge-case embed formatting 2023-10-28 00:24:42 +13:00
9c3f1abd3a Upload files to Discord as streams for speed 2023-10-15 00:26:52 +13:00
b7f90db20a Fix reply preview "undefined" on embed description 2023-10-14 19:27:45 +13:00
1016fb1d67 Always use OOYE bot to send thread start context 2023-10-14 17:23:55 +13:00
999276e407 m->d: Fix HTML entities showing in reply preview 2023-10-13 23:23:15 +13:00
480c7a6bd9 m->d: Use Matrix displayname in m/m reply preview 2023-10-13 23:05:07 +13:00
6bbfbd0721 Red question mark emoji encoding should be trimmed 2023-10-11 09:46:11 +13:00
af274ede53 Use the proper L1 and L2 emojis 2023-10-08 00:00:34 +13:00
0e56255f82 Improve code coverage 2023-10-07 22:47:31 +13:00
475cd5b724 Add new WHERE feature to my funny orm 2023-10-06 12:31:10 +13:00
28abdac5b6 Alter SQL column names to be distinct 2023-10-05 12:32:46 +13:00
a49b46381c Fix displayname/display_name discrepancy 2023-10-04 23:23:57 +13:00
9e22101f66 Fix bug quoting reply to msg with blockquote 2023-10-02 00:14:46 +13:00
7a218f1254 Autodetect mime type for m->d stickers 2023-09-30 16:21:07 +13:00
60f3b67d2d m->d fix for memorised emojis from other servers 2023-09-27 23:25:56 +13:00
95b6fddaa8 fix emoji sheet partial letterboxing 2023-09-27 23:23:46 +13:00
d1e3640078 Add Matrix command handler + emoji command 2023-09-27 08:20:18 +13:00
c1cbdfee82 Other kinds of reaction removals 2023-09-25 23:15:36 +13:00
8d3ac665c9 Support m->d redacting messages and reactions 2023-09-25 16:26:48 +13:00
2e68c7edf5 clean up 2023-09-24 03:24:56 +13:00
49d9d31b30 Support sending unknown mx emojis as sprite sheet 2023-09-24 01:55:47 +12:00
5dbcc74617 adding some more notes 2023-09-22 17:47:36 +12:00
92dee012fc refactor custom emoji schema; make reactions work 2023-09-20 00:37:15 +12:00
e44918b4c7 m->d bridge known emojis in messages 2023-09-19 19:59:58 +12:00
79bd0254f0 Finish moving from SQL to New Funny ORM 2023-09-18 22:51:59 +12:00
4e1e590c3a Start moving from SQL to New Funny ORM 2023-09-18 17:46:45 +12:00
714c31d230 Fix my homeserver being hard-coded 2023-09-12 20:43:56 +12:00
5bf051c624 here's what I would have done differently 2023-09-10 14:59:31 +12:00
5daef9ae47 too-long-for-discord names continued in message 2023-09-10 14:50:18 +12:00
8b7c47e369 m->d replies: support replying to edits & spoilers 2023-09-08 00:13:25 +12:00
e4e28daf08 m->d replies to file should use emoji indicator 2023-09-07 23:48:44 +12:00
c436357260 add test cases for zoe's username change 2023-09-06 12:27:28 +12:00
5185ae45ab m->d fix a few markdown escaping problems 2023-09-04 01:37:33 +12:00
aa263d3eb8 m->d avoid using blockquote as reply preview 2023-09-03 16:42:17 +12:00
be2cdd1186 m->d support encrypted files 2023-09-03 15:40:25 +12:00
6803b156bc m->d files and stickers 2023-09-02 23:28:41 +12:00
6a04f3f798 fixing tests 2023-08-30 15:20:39 +12:00
392151a75b code coverage 2023-08-30 13:29:38 +12:00
0d9191ed5c m->d support spoilers 2023-08-29 01:37:14 +12:00
56fe710392 finalise message editing 2023-08-29 01:31:52 +12:00
53b5438756 add test cases for message edits 2023-08-29 00:05:25 +12:00
be60f4bf39 add test cases for new reply format 2023-08-28 23:36:03 +12:00
fcbb045cbb Improved database schema
- Some queries are faster due to better index ordering
- Database is smaller thanks to splitting message_channel table and
  adding WITHOUT ROWID where helpful
2023-08-28 17:32:55 +12:00
55da70f8fc m->d start coding message edits 2023-08-28 01:30:07 +12:00
6a03c96984 m->d move reply message preview to own line 2023-08-27 23:25:08 +12:00
cae8d7c2f2 m->d mentioning bridged users and rooms works 2023-08-26 23:22:23 +12:00
58f5c3edf7 m->d underline formatting support 2023-08-26 22:59:22 +12:00
3f2a8d959c preemptively cache members as we find them 2023-08-26 22:50:54 +12:00
3ebfa8e3a7 show member details on discord from cache 2023-08-26 22:22:54 +12:00
0ea2b4efc9 m->d rich replies 2023-08-26 20:30:22 +12:00
39fb4465f6 fix m->d formatting of quotes and code 2023-08-26 19:07:19 +12:00
88eb8c2290 configure turndown for code blocks 2023-08-26 02:04:49 +12:00
8c4e16e255 add turndown for m->d formatting 2023-08-26 01:43:17 +12:00
1e9e9685c5 minor code coverage 2023-08-24 17:23:32 +12:00
4c0aa57ba7 add test case for m->d too-long message 2023-08-24 00:35:35 +12:00
458a620f4a make hardcoded "cadence.moe" configurable 2023-08-23 13:02:32 +12:00
3436759504 catch up on missed d->m messages when logging in 2023-08-19 22:54:23 +12:00
213bf0a515 send a slightly more appropriate display name 2023-08-19 18:37:34 +12:00
61120d92c6 m2d reactions (untested) 2023-07-04 17:19:17 +12:00
39cdba9f90 bridge both ways and prevent reflections 2023-07-04 00:39:42 +12:00
6e55e6d1b3 preparing for m2d 2023-07-03 01:06:05 +12:00