Commit Graph
3492 Commits
Author SHA1 Message Date
79989f4660 Fix attribution of Markdown document mentions (#14123)
Co-authored-by: Tom Moor <380914+tommoor@users.noreply.github.com>
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
2026-10-22 21:39:27 -04:00
Misha Sunborn b0b33231e2 fix: Moving a document drops permissions its children inherit from it (#13879)
DocumentMovedProcessor destroys every sourced membership on the moved
document and its descendants, then rebuilds them only from the new
parent's memberships. Memberships granted directly on the moved document
(or on any of its descendants) survive the move, but the sourced
memberships they had created further down the tree were never recreated,
so children silently lost access granted on their ancestor.

Recreate sourced memberships from every direct membership in the moved
subtree after the destroy step, in the same transaction.
2026-10-22 21:38:50 -04:00
Tom Moor 02a6f86a22 fix: Allow virtual-host S3 bucket origin in object-src CSP (#14237) 2026-10-22 21:01:18 -04:00
Tom Moor cfa9e09f17 feat: Add MCP tool to show what changed in a document (#14192)
* feat: Add get_document_changes MCP tool to diff document history

* fix: Bound document changes to the loaded snapshot and diff raw markdown

* perf: Replace structuredPatch with an integer ID line diff (#14246)

* fix: Update get_document_changes for MCP SDK v2
2026-10-22 20:43:57 -04:00
Tom Moor fb7b09ad6c fix: Close MCP subscriptions/listen streams at once (#14254)
The tool and resource lists never change during a request, so do not
advertise listChanged. This stops 2026-07-28 clients from holding open
SSE streams that the router interrupts.
2026-10-23 00:05:44 +00:00
Tom Moor d2ad848cfb perf: Batch comment view lookups and memoize email diff clipping (#14251)
Load the views of all comment notification recipients in one query
instead of one query for each recipient, and check each element for diff
classes with one combined selector, once.
2026-10-22 19:52:51 -04:00
Tom Moor 5752b4983d perf: Load attachments in one query when signing urls in text (#14247) 2026-10-22 19:19:09 -04:00
Tom Moor d98d8bdb1f chore: Upgrade MCP SDK to v2 for 2026-07-28 protocol support (#14244)
* chore: Upgrade MCP SDK to v2 for 2026-07-28 protocol support

* test: Assert JSON replies for 2026-07-28 requests
2026-10-22 19:13:56 -04:00
Tom Moor 0995a8e36b perf: Reduce traversals and skip unneeded work in ProsemirrorHelper (#14243)
* perf: Reduce traversals and skip unneeded work in ProsemirrorHelper

* fix: Coerce leaf text to a string when checking for text
2026-10-22 18:33:16 -04:00
Tom Moor ac1c6af8fc fix: Use X-Forwarded-Host for traced request URLs (#14210)
* fix: Use X-Forwarded-Host for traced request URLs

* fix: Validate forwarded host with a URL parser
2026-10-22 18:31:45 -04:00
Tom Moor 18cd750d75 chore: Consistent team checks in policies (#14235) 2026-10-22 08:10:46 -04:00
Tom Moor d102e4223e fix: Check each available team against session cookie for isSignedIn (#14236) 2026-10-22 08:10:24 -04:00
Tom Moor 7f1512b499 chore: Consolidate comment and restore checks into policies (#14234) 2026-10-22 08:02:44 -04:00
Tom Moor 0454badbf6 fix: Scope linked account settings in integration presenter to the owner (#14233) 2026-10-22 08:02:23 -04:00
Tom Moor 2ec2e2025e chore: Scope mention label lookup in emails to the team (#14229) 2026-10-22 07:56:59 -04:00
Tom Moor a5b8c9102c chore: Consistent email visibility checks in user search (#14227) 2026-10-22 07:56:46 -04:00
Tom Moor 1bd0ea8819 fix: Consistent template validation in documents.update (#14230) 2026-10-22 07:55:43 -04:00
Tom Moor e64b02388a fix: Consistent collection policy checks in MCP fetch (#14231) 2026-10-22 07:55:35 -04:00
Tom Moor 8bbd371db6 fix: Consistent order of checks in accessRequests.approve (#14232) 2026-10-22 07:55:30 -04:00
Tom Moor 0720b83f9f fix: Scope public share loading to the request team (#14223) 2026-10-22 07:47:46 -04:00
Tom Moor 60095ed58a fix: Stricter document name handling in collaboration server (#14225)
* fix: Require canonical document names in collaboration connections

* Add null check before reading document id
2026-10-22 07:46:40 -04:00
Tom Moor 96dd059727 chore: Consistent websocket rooms for group events (#14226) 2026-10-22 07:46:14 -04:00
Tom Moor 4402975f57 fix: Check permissions earlier in documents.restore (#14224) 2026-10-22 07:43:28 -04:00
Tom Moor e5284d610d chore: Replace stoppable with native server connection closing (#14205)
* chore: Replace stoppable with native server connection closing

* fix: Keep pipelined sockets open until all responses finish
2026-10-21 22:50:25 -04:00
Tom Moor 2679093af3 chore: Vendorize throng as ClusterManager (#14198)
* chore: Vendorize throng as ClusterManager

* fix: Force kill workers after grace period, skip fork if shutting down

* fix: Give workers their full shutdown timeout before the primary exits

* chore: Use a named export for ShutdownHelper
2026-10-21 18:20:03 -04:00
Tom Moor 8040ce19a3 chore: Replace addressparser with nodemailer/lib/addressparser (#14202) 2026-10-21 18:19:21 -04:00
Tom Moor 0545db9080 chore: Vendorize styled-components-breakpoint (#14191) 2026-10-21 00:02:11 -04:00
Tom Moor 8456b6a4c0 feat: Support one-click unsubscribe (RFC 8058) (#14148)
* feat: Support one-click unsubscribe (RFC 8058)

- Emails with an unsubscribe URL now send List-Unsubscribe-Post: List-Unsubscribe=One-Click.
- notifications.unsubscribe and shares.unsubscribe accept a form POST from mail providers and return 200.

* fix: Use default rate limiter for shares.unsubscribe

Mail providers send one-click unsubscribe callbacks in bulk from a small set of IPs. Remove mailer.test.tsx.
2026-10-20 23:31:50 -04:00
Tom Moor cfc236a51f fix: Rate limit documents.update (#14189) 2026-10-21 03:14:26 +00:00
Tom Moor 067f340996 perf: Skip queueing SearchIndexProcessor jobs for the Postgres provider (#14186) 2026-10-20 23:03:58 -04:00
Tom Moor ba7b6e88e7 fix: Translate access request emails and set email language and direction (#14147)
* fix: Allow every mention notification to be turned off and unsubscribed

- The Mentioned and Group mentions settings now control both the document and comment event types.
- Mention, share, collection invite, and access request emails now have an unsubscribe link and List-Unsubscribe header.

* fix: Translate access request emails and set email language and direction

- The access request email now uses the language of the recipient.
- Emails now set lang and dir on the HTML document, and RTL emails align content to the right.
2026-10-20 20:23:21 -04:00
Tom Moor 71c3f79018 fix: Allow every mention notification to be turned off and unsubscribed (#14146)
* fix: Allow every mention notification to be turned off and unsubscribed

- The Mentioned and Group mentions settings now control both the document and comment event types.
- Mention, share, collection invite, and access request emails now have an unsubscribe link and List-Unsubscribe header.

* Remove test
2026-10-20 23:25:34 +00:00
Tom Moor c963528941 feat: List all contributors in document update emails (#14157)
* feat: List all contributors in document update emails

* fix: Stable collaborator order, plural wording, and legacy email jobs
2026-10-20 08:32:16 -04:00
Tom Moor 94276a743c fix: Prevent duplicate heading anchor IDs (#14162)
A heading whose text ends in a number could get the same slug as a
numbered duplicate. Heading slugs now come from one HeadingSlugger that
skips taken IDs, and the server section lookup counts nested headings
like the editor does.
2026-10-20 08:28:54 -04:00
Tom Moor 878f41393d fix: Cap signed URL redirect caching at guaranteed signature lifetime (#14169) 2026-10-20 08:28:41 -04:00
Tom Moor 584e27ad10 fix: Check permissions earlier in users.update_role (#14156) 2026-10-19 23:33:44 -04:00
Tom Moor d249b34e8e fix: Tighten checks when publishing drafts (#14155)
* fix: Tighten checks when publishing drafts

Detaching a document on unpublish now also clears its parent.

* fix: Publish at the root when the parent is in another collection

* test: Load detached drafts without the default scope
2026-10-19 23:23:11 -04:00
Tom Moor d015a32459 fix: Share state handling for unpublished documents (#14160)
* fix: Share state handling for unpublished documents

* fix: Update cached shares when a document is unpublished

* Revert "fix: Update cached shares when a document is unpublished"

This reverts commit 15abf962b8.
2026-10-19 21:58:41 -04:00
linear-code[bot]andTom Moor aed1e87bb1 chore: update @modelcontextprotocol/sdk to 1.32.1 (#14145)
* chore: update MCP SDK to 1.32.1

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>

* feat: Limit MCP tool argument elements to 1000

---------

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
2026-10-19 18:55:10 -04:00
Tom Moor 2f68f32b40 fix: Polish UI copy, casing, and punctuation (#14144)
* fix: Polish UI copy, casing, and punctuation across the app

* fix: Remove duplicate period in API key scope hint
2026-10-19 09:05:24 -04:00
Tom Moor 7d8269a82e fix: Redact query string values in traces except an allowlist (#14140)
* fix: Redact OAuth authorization codes from traced URLs

* Extend the dd-trace default pattern instead of copying it, add tests

* Redact all query string values except an allowlist
2026-10-19 08:23:17 -04:00
Tom Moor d97c4baad2 perf: Cache permanent Iframely errors for an hour (#14134)
* perf: Cache permanent Iframely errors for an hour

* perf: Cache permanent Iframely errors for a day
2026-10-18 23:57:19 +00:00
Tom Moor 4bd64340a4 perf: Skip the text column when loading document lists (#14138) 2026-10-18 19:52:13 -04:00
Tom Moor 20cc8e1106 fix: Refresh and validate Discord authentications (#14141) 2026-10-18 18:57:43 -04:00
Tom Moor ad8906d82e perf: Count notifications without default scope joins (#14139) 2026-10-18 18:53:08 -04:00
Tom Moor accfa44da3 perf: Filter groupMemberships.list by the user's groups (#14137) 2026-10-18 18:29:01 -04:00
Tom Moor 9d4304a332 chore: Remove unused code (#14133)
* chore: Remove unused code

* Restore DiscordClient
2026-10-18 18:27:05 -04:00
Tom Moor ef7753dc57 fix: Tighten parent share resolution in share loader (#14129) 2026-10-18 09:15:46 -04:00
Tom Moor 97cc147726 feat: Render Mermaid diagrams with Pele (#14126)
* feat: Render Mermaid diagrams with Pele

* fix: Translate empty diagram label

* fix: Prevent diagram flash when editors swap on load
2026-10-18 08:11:41 -04:00
Tom Moor c2fe0752ab chore: Compact migrations before v1.3.0 into a baseline schema (#13973) 2026-10-17 18:45:25 -04:00