Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Oct 16, 2026
| 31a19cf |
Upgrade to Ruby 4.0.7 and Bundler 4.0.20: the Gemfile's ruby, the lockfile's RUBY VERSION and BUNDLED WITH, CI's setup-ruby and the Cursor image. No gem versions changed. script/agent-env/install.sh installs the lockfile's Bundler, so cloud agents pick it up. On macOS, the openssl gem may need --with-openssl-dir=$(brew --prefix openssl@3) to build under 4.0.7. |
| 357fb2e |
Remove comments that only restated the code, such as "# Find the event" above Event.find, "<!-- Name -->" above the name partial, and the step-by-step labels in the icons rake task. Comments that say why, flag a gotcha, cite an issue or explain a workaround stay, as do linter disables, the cops' @example docs and commented-out code. Only comment lines changed. |
| a8a6ad5 |
A chat comment (an event's discussion) now needs a body, as it holds nothing else: a thread can still open with only a subject. A blank comment showed as an empty comment from its author and opened the discussion panel, as the old placeholder comments did. Posting a blank first comment no longer makes the event's discussion post, and an edit that would empty a chat comment is refused (400), as set skips validation. |
| 44842e6 |
Pmail#delayed_jobs now matches only the pmail's send_pmail jobs. Since Signal messages went into a job of their own (4190b1d7), Send test on an event pmail queued a send_signal_messages job on the pmail, which delayed_jobs counted: the unsent draft showed "Will be sent at", a second Send test before the worker ran the first (or a failed Signal job left in delayed_jobs) made delayed_job raise "Multiple delayed jobs!" on the edit and pmails pages, and Send deleted the Signal job. The Signal job is also no longer queued when no recipient has a phone. Fixes #268. |
| 2a7d5ad |
Move changing the password to its own Change password tab (/accounts/password), out of the profile form, which no longer takes a password. The tab asks for a sign in code from the last hour before it shows the form, so a session that isn't recently_verified? is sent to enter one first rather than having what it typed thrown away, and the post checks again. The new password is typed twice, and must be at least 8 characters as before (now also checked in the browser with minlength). Changing it signs out other browsers, as it did from the profile form. The profile form now asks for a code only to change the email, and the browser filling in a saved password there no longer needs handling. |
| 6fb8357 |
Revoking an account's sessions (changing its email or password, an admin resetting the password, or its email being confirmed from a browser that didn't set it up) now also replaces its API key and ends its calendar feed key, which sign in too, so whoever had the account can't keep using it through them; a new ics_key is made when next needed. Asking for a sign in code again, which anyone can do for any address, now resends the code already sent rather than ending it, until it has 15 minutes left: the code is made from a stored nonce (sign_in_code_nonce) and TokenVerifier's secret, so the database alone still can't give it. Changing the email from /accounts/edit now sends the confirmation email to the new address straight away (only signing up did before), after revoke_sessions!, so its link carries the new link token. |
| 1effd0c |
Someone who signed up with another person's email address, and connected a provider or set a password, could keep signing in after the owner started using the account. Now, when the email is confirmed from a browser that didn't set the account up, Account#confirm_email! signs out other sessions, resets the password and removes the providers connected before confirmation (ProviderLink#before_email_confirmed, with links from before the field counted as unconfirmed); confirmed from the browser that did, it keeps them. Only a session marked as having set the account up (session[:set_up_account], given by signing up or signing in with a password, provider or code) counts as that browser: one from an emailed link, which anyone the email reaches can open, or from before this change, doesn't. Only a sign in code or the button on /confirm_email confirms an email: the link now shows the button, which posts to /accounts/confirm_email, so a mail scanner opening it confirms nothing, and signing in with a link no longer confirms. The event email previews no longer show the signed-in account's link token (recipient_variables token: false), which would have let someone confirm an address they don't receive. Google's email confirms the account at signup only for Gmail addresses (Google vouches for another domain's address only as of when it was verified), and changing the email puts the providers back before confirmation, so they're re-vetted with the new address. CoreExtensions turns a legacy link's nil before_email_confirmed into false in memory, and the account's autosave (accepts_nested_attributes_for) saves loaded links, so ProviderLink keeps such a value counted as before confirmation when it's saved. The test sign in helpers confirm the account first (confirm: false to test the other browser path). |
| 3aceec5 |
Drop the fallback for accounts still holding their link token as sign_in_token, now that the rename to link_token has run in production and no account has the old field. Sign in looks up link_token alone, and making a new link token no longer unsets the old field. Links that say sign_in_token in their URL keep working, as link_token_param still reads that param. The sign_in_token_1 index can be dropped once this is deployed. |
| 1f82d28 |
Changing an account's email or password now signs out every other browser, as does an admin resetting the password, so whoever had the account loses it with the old credentials. Each session carries the account's session_token (start_session!), and current_account accepts the session only while it matches (session_account); revoke_sessions! changes it, and also makes a new link token and drops any outstanding sign in code, as a link or code already sent would otherwise sign a browser back in. Sessions from before session tokens are given one on their next request, so no one is signed out by the deploy, unless the account has since revoked its sessions (legacy_sessions_revoked). |
| b7b9195 |
Changing an account's email or password, or connecting a provider, now needs a sign in code from the last hour, so a session from a link in a forwarded email can't take the account over. A sign in code was the same token as the links in every email, so having one proved nothing more than having any of them. A sign in code is now its own secret: emailed only when someone asks for one, lasting an hour and working once, with only its digest stored on the account (sign_in_code_digest). It has its own param, sign_in_code, and the token in the links, which keeps working as before, is now the link token (link_token), so the two are told apart in the code and the flashes. Signing in with a code marks the session verified (recently_verified?), and every sign in goes through start_session!, which drops that mark when the session changes account. Without it, the edit form, the provider callback and the provider confirmation email a code and send the person to enter it. A saved password the browser fills in doesn't count as a change, and the notification settings form now sets only the notification settings, so it can't change the email either. The link token was stored as sign_in_token, and links said sign_in_token. Links say link_token now, and the sign_in_token param is still read, as it is in links already sent and in emails organisers have saved. Until the field is renamed in the database, sign in also looks up accounts by sign_in_token, and making a new link token drops the old one: the code marked "drop this once the rename has run". |
| 706bc1a |
Unpin rack-utf8_sanitizer (now 1.11.1) by running it ahead of Sinatra's middleware. Used in the app, it came after Sinatra's MethodOverride, which had already read form bodies, so it read nil: on 1.10.1 that raised in strip_byte_order_mark, which our patch hid, and 1.11 returns 400 for it (whitequark/rack-utf8_sanitizer#105). Padrino.use in config/apps.rb wraps the whole router, so it now sees and sanitizes form bodies first, and the patch is gone. |
| bdd63e1 |
Drop two lint config relaxations, ESLint's caughtErrors: 'none' and RuboCop's IgnoreDuplicateElseBranch, so the rules apply as standard, and fix what they then report rather than disabling them. The 15 unused catch bindings are now bare catch {}. Searchable's nil branch did the same as else, so a nil value now skips the Atlas Search branch and falls through to else, as before; the routes stats badge drops its get case, which repeated else. |
| e7d8aee |
Turn CodeQL's XSS queries back on and fix what they find in our JavaScript. The config excluded js/xss-through-dom and rb/reflected-xss outright, which would also hide a real case in new code; it now only ignores eslint.config.mjs and stylelint.config.mjs, whose template-parsing regexes run only on our own files. The JavaScript findings came from values read out of the page (the JSON config, data attributes) reaching HTML or selectors: docs search escapes result.href, the EVM network prompt is built with .text(), the stats sheet looks up its table with find(), the card and payment_method inputs are picked with filter() rather than selector strings built from values, and the Open Collective and gathering redirects encode their slugs. None was exploitable, as the values are our own, but none can become so. The remaining Ruby findings, to_json in <%== and File.read of our own files in layouts, are false positives to dismiss once they appear. |
| 9b0c673 |
Remove images/.gitkeep, as the directory isn't empty. |
| 6fb4cd1 |
Remove 21 images nothing references: circles.svg, copyleft.png, cuties.jpg, dandelion.jpg, link-black.png, open-source.png, the Substack and Telegram PNGs (the contact page uses Bootstrap Icons), tickets.png, the Bread, Celo and Coinbase payment method logos (_payment_methods.erb doesn't list them), and the logo variants other than those the layout, favicon, manifest and emails use. |
| 75efece |
Remove three partials nothing renders: events/_table and events/_concise, left behind when 995e781a2 removed the events table and concise display modes, and comments/_sign_in, whose last caller went in 82b5aa9e5. |
Commits on Oct 15, 2026
| 289a02e |
Update iframe-resizer from 4.2.10 to 4.4.5, the last MIT release. Versions 4.4.0 to 4.4.4 and all of 5.x are GPL-3.0, with a commercial licence for other projects, which Dandelion's FSL doesn't fit; 4.4.5 went back to MIT. The child script's changes since 4.2.10 are refactors, small fixes (the print events listener) and opt-in mouse events, off by default. The embed docs' parent script moves to the same version. |
| a436476 |
Update jQuery UI to 1.14.2 and countUp.js to 2.10.1. jQuery UI 1.14 drops IE and removes $.ui.ie, $.ui.safeActiveElement, $.ui.safeBlur and $.fn._form, none of which we use; the widgets we use (autocomplete, menu, sortable, draggable, droppable) are unchanged. countUp.js keeps its UMD build at dist/countUp.umd.js with the countUp global and the CountUp constructor and options we use. Both releases are past the 7-day cooldown. |
| 85293a4 |
Update gems with bundle update, and compare membership payments with $expr rather than $where, which Mongoid 9.1 rejects. The update includes padrino 0.17.0 (was 0.16.1), mongoid 9.1.1 (was 9.0.11), mongoid_paranoia 0.7.0 (was 0.6.0), gocardless_pro 4.20.1 (was 4.3.0) and activemodel/actionview 8.1.4. Mongoid 9.1 raises InvalidQuery on JavaScript $where strings unless allow_unsafe_query_operators is set, so the gathering members page's More to pay, No more to pay and Overpaid filters failed. They now compare paid and requested_contribution with $expr, which the server evaluates natively, in one query rather than plucking ids first. Dandelion/MongoidWhere no longer lets a string through |
| 7de2268 |
Stop browsers autofilling the password field on /accounts/edit. The field had no autocomplete, so a browser or password manager could fill in the saved password, and since a present password makes encrypt_password run, every profile save re-hashed it at full BCrypt cost: an untraced gap of about 350 ms in median POST /accounts/edit traces. password_block, used only there, now sets autocomplete="new-password", as secret_block does. |