Commit graph

734 commits

Author SHA1 Message Date
Corry Haines
cfe18932b8
Match sanitizing for posts to Mastodon (#422)
Creates filter for REWRITTEN_TAGS that converts them to `p` rather than ripping them out entirely, and formats `ul` as break-separated list

Both changes align sanitization to Mastodon's "strict" sanitizer at https://github.com/mastodon/mastodon/blob/main/lib/sanitize_ext/sanitize_config.rb#L73

I don't love the complexity of the Filter, but Bleach doesn't give us great options to work with. The code operates within an iterator without the useful "sibling" methods that Ruby's equivalent has. Also, Bleach runs filters _after_ sanitizing (unlike Ruby's which runs before) so we have to pass all the elements through the sanitizer, then rewrite them after the fact.
2023-01-15 22:32:04 -07:00
Andrew Godwin
b721833b4f Fix old post tests 2023-01-15 21:11:08 -07:00
Andrew Godwin
18ab453baa Only fanout remote posts younger than 1 day 2023-01-15 20:57:38 -07:00
Andrew Godwin
6c72f25fbe Update features some more 2023-01-15 18:52:31 -07:00
Andrew Godwin
2ba0c1759e Fix view option wrapping 2023-01-15 16:41:52 -07:00
Andrew Godwin
71234ef159 Add start of 0.7 release notes 2023-01-15 16:38:51 -07:00
Andrew Godwin
57dfc330e0 Fix source for no bio 2023-01-15 16:29:11 -07:00
Andrew Godwin
de9261251e Fixed #421: Allow profile editing via API 2023-01-15 16:15:57 -07:00
Andrew Godwin
e39355ceb5 Fix admin pagination 2023-01-15 15:04:39 -07:00
Michael Manfre
06f6257645
Render non-media PostAttachments (#420) 2023-01-15 14:49:04 -07:00
Andrew Godwin
9dded19172 Add admin notification for new identities 2023-01-15 14:48:17 -07:00
Andrew Godwin
34b4a6cc10 Implement followers API endpoint 2023-01-15 13:48:06 -07:00
Andrew Godwin
9983544c2a Fix account lookup API to include everyone 2023-01-15 13:45:59 -07:00
Andrew Godwin
b44be55609 Fixed #408: Implemented blocking 2023-01-15 13:35:45 -07:00
Andrew Godwin
f689110e0b Fix file size label hardcode 2023-01-15 10:31:27 -07:00
TAKAHASHI Shuuji
5e65d569bf
Prevent uploading too large image file (#416) 2023-01-15 10:29:18 -07:00
Michael Manfre
94fe247b17
Handle errors when a Post references an invalid ancestor (#417) 2023-01-15 10:28:44 -07:00
Michael Manfre
1f44e93518
Handle servers that return wrong webfinger payload (#415) 2023-01-14 14:19:47 -07:00
Andrew Godwin
f69c7304c1 Fix docker build with new domain check 2023-01-14 12:24:15 -07:00
Andrew Godwin
3f3e815407 Defend against MAIN_DOMAIN being unset in prod 2023-01-14 12:18:35 -07:00
Andrew Godwin
1ffcd5e6d1 Add timelineevent.created index 2023-01-14 12:01:44 -07:00
Andrew Godwin
76076e3387 Flip timelines back to created ordering
Also added in some tracking from where post fetches come from, in case
this re-creates the weird thing where posts emerge from history.
2023-01-14 11:31:57 -07:00
Corry Haines
ade954c2cd
Instruct robots to ignore proxy (#413) 2023-01-14 11:15:18 -07:00
Andrew Godwin
2675ed69ee Update help_text in migration 2023-01-14 11:11:36 -07:00
TAKAHASHI Shuuji
7f23ae5f52
Support acct with domain name in /api/v1/accounts/lookup (#412) 2023-01-14 10:36:16 -07:00
Michael Manfre
21d565d282
Copy Emoji to local and delete file with record (#407) 2023-01-14 10:35:20 -07:00
TAKAHASHI Shuuji
feb7a673eb
Attach multiple images to RSS (#411) 2023-01-14 10:34:31 -07:00
TAKAHASHI Shuuji
71ab6b98a6
Fix emoji file size validation and help text and add image size validation (#410) 2023-01-14 10:33:36 -07:00
TAKAHASHI Shuuji
3679448cdf
FIx HTML issues found by djLint (#409) 2023-01-14 10:32:48 -07:00
Andrew Godwin
9876b81f66 Add announcements client API 2023-01-13 16:12:05 -07:00
Andrew Godwin
8b3106b852 Implement server announcements
Fixes #377
2023-01-13 16:12:05 -07:00
Michael Manfre
81fa9a6d34
Ignore badly formed ActivityPub object data (#406) 2023-01-13 13:44:43 -07:00
Michael Manfre
cb66b9559d
Allow incoming Posts with Bookwyrm Edition tags (#405) 2023-01-13 13:43:37 -07:00
Michael Manfre
fc8b5be4a0
Support future times with timedeltashort tag (#403) 2023-01-13 10:54:02 -07:00
Michael Manfre
18b50ce0e6
Silence a few common errors when fetching (#404)
Downgrade nodeinfo json error to a captured message
2023-01-13 10:53:02 -07:00
Andrew Godwin
fa688a5a73 Fixed #383: Render links in API metadata values 2023-01-11 22:04:03 -07:00
Humberto Rocha
ae74d65157
Fix identity not fetching emoji (#397) 2023-01-11 17:07:59 -07:00
Andrew Godwin
e68158202e Fix signature typechecking 2023-01-11 11:00:18 -07:00
Andrew Godwin
e20aea1b9c Fixed #393: Deal with errors unpacking focalPoint 2023-01-11 10:26:01 -07:00
Andrew Godwin
d51a08ef8c Fixed #257: runstator exclude option 2023-01-10 20:44:45 -07:00
Andrew Godwin
113db4ab3a Fixed #376: Emoji admin page
Also did a new table style for admin pages
2023-01-10 20:31:50 -07:00
Andrew Godwin
d6f558f89a Bump cryptography version 2023-01-10 17:23:51 -07:00
Corry Haines
28cfbf2ef5
Improve performance on /api/v1/timelines/home (#387)
Prefetch/select required fields for API version of home. Requires considerably more data than HTML version of home.
2023-01-10 17:16:54 -07:00
Steve Ivy
150cd9503d
Update Contributing docs to add docs on using make (#379)
Combine the "make" instructions with the
previous direct installation instructions, add
small section on using a locally-hosted
postgres.
2023-01-09 10:04:11 -07:00
TAKAHASHI Shuuji
0c1e51322f
Add djhtml to pre-commit check (#382) 2023-01-09 09:58:17 -07:00
Andrew Godwin
024d956e5e Handle old IDs coming in for pagination 2023-01-09 09:08:35 -07:00
TAKAHASHI Shuuji
4a1e375e3c
Add side margin to home and login page on small screen (#384) 2023-01-09 09:51:15 -07:00
Andrew Godwin
97d40912ed Fix pagination on home 2023-01-09 09:01:28 -07:00
Andrew Godwin
fb881dd5de Fix tests and most of pagination 2023-01-08 23:06:33 -07:00
TAKAHASHI Shuuji
91116fe6f8
Fix image height overflow in the post with single image (#381) 2023-01-09 00:25:54 -07:00