Discourse 2.6.0.beta3 リリースノート

2.6.0.beta3 の新機能

メディアを含む投稿のレビュー

Discourse では、サイト管理者が投稿されたコンテンツをレビューするための多くのオプションを提供しています。デフォルトでは、ユーザーはスタッフによる事前レビューを経ずに投稿できます。また、ユーザーの最初の X 件の投稿の承認を必須とする、定義された信頼レベルに達していないユーザーのすべてのコンテンツを承認必須とする、定義された信頼レベルに達していないユーザーによる新しいトピックを承認必須とする、特定のカテゴリ内での新しいトピックおよび/または投稿を承認必須とする、といったオプションも用意されています。

beta3 で新たに追加された「review media unless trust level」というサイト設定により、埋め込まれたメディアを含むすべてのトピックや投稿を、投稿前にスタッフがレビューするようにサイトを構成できるようになりました。

グループメンションと個人メンションの視覚的区別

以前は、個人メンションとグループメンションの視覚的な区別がありませんでした。どちらも @ 記号を使用していました。マウスオーバーするとメンションの種類を確認できましたが、タッチデバイスでは機能せず、直感的にわかりませんでした。

これらの通知を視覚的に区別しやすくするため、グループ通知には異なるアイコンを使用するように変更しました。

見た目は以下のようになります:

image

Users アイコン、メンションを作成したユーザー名、およびメンションされたグループ名を表示します。

比較のため、通常のメンションは以下のようになります。

image

メールでの安全なメディア画像のデフォルト許可

Secure Uploads に記載されているように、https を使用しているサイトでは、メールからアップロードされたメディアが削除されていました。
image

Discourse は、デフォルトで、画像が定義されたサイズを超えない場合にメールに画像を含めることをサポートするようになりました。管理者は、secure media allow embed images in emails および secure media max email embed image size kb というサイト設定を通じてこれを制御できます。

UI からの SSO レコードの削除を管理者に許可

Discourse 上の SSO レコードが認証プロバイダーと同期しなくなることがあります。最も一般的な原因は、一方のシステムでユーザーのメールアドレスが変更され、他方で変更されていないケースです。SSO の競合を解決するためのツールをより充実させるため、管理者はユーザーの SSO レコードを削除できるようになりました。これにより、ユーザーは次回ログイン時に SSO の外部 ID ではなく、メールアドレスを通じてマッチングされるようになります。

ユーザー用トピックタイマーからブックマークのリマインダーへ

ユーザー用トピックタイマーでは、スタッフユーザーがトピックに戻ってくるようリマインドするタイマーを設定できました。2.5.0.beta3 でブックマークのリマインダーが導入された https://meta.discourse.org/t/discourse-2-5-0-beta3-release-notes/148766?u=jomaxro 以降、すべてのユーザーがリマインダーを設定できるようになりました。

そのため、機能は完全にブックマークに置き換えられたため、ユーザー用トピックタイマーは削除されました。既存のユーザー用トピックタイマーは、最初の投稿において自動的にブックマークのリマインダーに変換されます。変換ルールは以下の通りです:

  • トピックの最初の投稿にブックマークがない場合、リマインダー付きのブックマークを作成します
  • トピックの最初の投稿にブックマークがあり、かつリマインダーが設定されていない場合、トピックタイマーのリマインダーで更新します
  • トピックの OP に対してリマインダー付きのブックマークが存在する場合、トピックタイマーは破棄されます

ユーザーが選択可能なカラーパレット

beta2 で強化された ダークモードのサポート に続き、サイトはテーマと同様に、ユーザーがカラーパレットを選択できるように設定できるようになりました。これにより、2 つのカラーを提供するために 2 つのテーマを構成する必要がなくなりました。代わりに、1 つのテーマをインストールし、ユーザーが選択可能なカラーパレットを追加するだけで済みます。

ユーザーエクスポートデータの充実

ユーザーは以前から、自分の設定を通じてサイト内で作成したすべてのトピックと投稿をダウンロードできました。このダウンロード機能には、バッジ、訪問履歴、ブックマークなどの追加ユーザーデータも含まれるようになりました。

フォント制御の簡素化

サイトは、ウィザードとサイト設定を通じてベースフォントをカスタマイズできるようになりました。

「いいね!」 31

Even more!

But wait, there’s more! We do our best to highlight new features and changes for you, but there’s always too many changes to detail. For a full list of new features, bug fixes, UX improvements, and more, be sure to review the Additional Features and Fixes listed below.

Security Updates

This beta includes 6 security fixes for issues reported by our community and HackerOne.

  • __ws shouldn’t be able to override every domain in multisite
  • Return error on oversized images
  • Mod should not see group_users and second_factor_enabled.
  • Remove indication that a group exists if user can’t see it.
  • Don’t allow moderators to list PMs of all groups.
  • Don’t allow moderators to view the admins inbox

Plugin improvements

Many plugins

  • Bug fix
    • We’ve patched numerous bugs in many of our plugins
  • Update coding standards
    • Changes to improve code style consistency across our plugins

Omniauth JWT

  • Allow passing jwks_loader parameter to jwt library

Footnote

  • Major frontend refactoring
  • Improve positioning of large images
  • Styling improvements

Sitemap

  • Performance improvement: generate and store sitemaps in the database

Akismet

  • Allow suspending of users when reviewing Akismet flagged posts
  • Display a banner on the topic page if it was deleted by Akismet

Zendesk

  • Ticket requested should be the user who submitted the ticket

WP Discourse

  • Only support the force publish option for posts published with the Block Editor
  • Update for WordPress 5.5

Algolia

  • Better search input alignment
  • Add translation support

Azure AD

  • Add support for reading full name and using a specific tenant

Chart

  • Autogenerate background colors if not set

Policy

  • Add policy builder

Calendar

  • Additional events functionality and improvements

Assign

  • Advanced search filters for assigned topics
  • Assign bulk actions for topic lists
  • Allow filtering topic in the user assigned list

Code Review

  • Add skip commit feature
  • Allow opting out of “commit approved” notifications
  • Continue reviewing in the same category, even if muted

Additional Features and Fixes

Click to expand

New Features

  • Add a site setting to control automatic auth redirect
  • Advanced search filters for view count
  • Change default size for search recent posts
  • Make search filters case insensitive
  • Hidden SiteSetting.keep_old_ip_address_count to track IP history.
  • Allow to extend topic_eager_loads in Search
  • Adds support for mobile view on page publishing
  • Add support for not persistent sessions
  • Moderators allowed to view groups which members can see.
  • Show existing tag name on rename modal
  • Add user opt to select bookmarks as home
  • Allow email image embed with secure media
  • Add css classes to stylesheet link elements
  • Add stylesheets to bootstrap.json endpoint
  • Add below-static plugin outlet
  • Deprecate lodash so we can remove it.
  • Allow specifying platform name for platform specific gems
  • Additional control of iframes in oneboxes
  • Add dismiss unread topics button when filtered by tag.
  • Added sort by username for directory items
  • More API scopes
  • Allow plugins to register parameter-based API routes

Bug Fixes

  • Don’t skip the new user badge
  • mouseEnter is deprecated in newer Ember releases
  • Email always settings were not being respected
  • Remove category id from category class name
  • Only staff can edit topic details when first post is locked
  • Allow editing in composer before a category is selected
  • Use scrollY for current scroll position
  • Unexpected return during system_message_sent event
  • Prettier popular-themes.js
  • Replace broken Material Design preview link
  • TL2 promotion message and advance training
  • Don’t error Topic#similar_to when prepared raw is blank
  • Do not downcase group name in notification payload
  • Respect moderator group permissions in guardian
  • Error “unknown attribute verified” in uploads rake tasks
  • Use normal logo in published pages if small not available.
  • If no group is found, raise correct error
  • Compensate for typographer
  • Nested quotes in BBCode
  • NotificationLevels import was incorrect
  • Missing / after basePath was causing the URL to be relative
  • Ensure multisite DB is set correctly when spawning backup process
  • Whitelist marker elements when uploading SVGs
  • Forking prevented notifications from being sent after backup
  • Hidden was defined as static instead of relying on attribute
  • Provide better API for registering custom upload public types
  • Do not downcase group name in current user serializer
  • Use asset_hostnames in rails_multisite
  • Fix verification_status migration for uploads
  • Group tag notifications included for all users
  • Don’t show Tags tab in group management if tags are disabled
  • N+1 for admins viewing groups page
  • Uses get() on properties of groups/badges which could be POJOs
  • Attempts to make autofocus more resilient in modals
  • Category slug route was not working for subfolder setup
  • Clear stylesheet cache on base font change
  • Missing files from previous commit
  • Topic progress wrapper positioning regression
  • Img width and height should be in quotes
  • Simplifies updating searchedTerms from connectors
  • TopicQuery.list_private_messages_unread ignore notification level
  • Improvements after code review
  • Spec for oversized images security fix
  • Wizard does not include discourse-shims
  • Adds shims for popper in wizard
  • Mark only uploads as verified/unverified in S3 inventory
  • Upload errors were sometimes not displayed properly
  • Make form use /u/admin-login instead of /users/admin-login
  • Selected diversity was off by one
  • isVisible is no longer allowed even if used properly
  • Was using a global Popper variable
  • Ember has deprecated isVisible in newer versions
  • Ensures focus is dropped before focus hyperlink input
  • Wrap modal onShow inside next
  • Ensure uploads are linked to post when revising a post
  • Prevent “uploads are missing in S3” alerts after restoring a backup
  • Prevents eslint failure on unmatched patterns in plugins
  • Tags_filter_regexp was not being applied on tag rename
  • Make sure rel attributes are correctly set.
  • Adds important declaration to .hidden utility/helper class
  • Ignore empty search terms in topic queries
  • Account for different composer ‘edit’ states in discourse-presence
  • Update first_pm_unread_at of user’s groups without unread.
  • Search checkboxes incorrectly being checked on similar prefix.
  • Admin search for PMs should only search own PMs.
  • Topic_creator accepts participant_count in import mode
  • We should check for watched words first even if the user is a fast typer.
  • approve post count did not take new topics into account
  • Admin should always be able to view group messages.
  • We have changed the way __widget_helpers are resolved
  • Handles different cases of canInvite/canRemove states in PM
  • Workaround constructor name not available after transpilation
  • Wraps popper call in afterRender and uses createPopper
  • Make deleted topic post bookmarks more resilient
  • Allow us to call script_asset_url in controllers
  • Ensures we don’t attempt to concat an empty list
  • Preload bold fonts in wizard
  • Prevents error when opening a composer from a tag page
  • Make crawler linkback list compatible with google schema guidelines.
  • Convert jQuery array to JS array
  • Whoops, linting
  • Gravatar download attempt if user is missing their email
  • Don’t send mailing list for post with empty content
  • Highlightjs 10 requires some languages to be loaded before others
  • Remove font-famly property in .font- classes
  • System message wasn’t fully translatable
  • Updates highlightjs to latest version to avoid a freeze
  • Check if invite has expired before showing it
  • Add to tags result set only visible tags
  • Don’t raise error in update username job if user has been deleted.
  • Wait for groups before showing empty message
  • Add cache breaker for fonts
  • Allow fonts to be delivered via CDN
  • Skip pm view action log while generating webhook payload.
  • User export category preferences on a deleted category.
  • Emails.rake use authentication
  • Modify notification after remove auto_watch_category
  • Handle deleted categories in post export
  • Focus first button in topic admin menu
  • Ensure disabling 2FA works as expected
  • Disable insert link button when editing a category
  • Flaky JS test due to not waiting for promises
  • Dont error when bookmark topic is nil
  • Do not set color_scheme_id in user options when no schemes are marked as selectable
  • Pluralized translation overrides didn’t work for en_US
  • UserAction did not have a types enum
  • Bump onebox to fix soundcloud oneboxes
  • Suspend API to require suspend_until and reason params
  • Remove additional paths from robots.txt
  • default_tags_muted site setting won’t have tag ids.
  • Ensures period-chooser is not losing query params
  • Correctly redirect after external login on subfolder sites
  • Ensure that topic timers belonging to trashed topics are destroyed.
  • Clean up toggle closed topic timer when user is not authorized.
  • Clean up topic_timers when no longer valid.
  • Ensure autoclose based on last post is executed by system user.
  • Topic Timer auto opening closed topics
  • Symbols and strings should be treated similarly while saving custom fields
  • QUnit site has to be set before reset()
  • Server side rendering was broken with new helperContext()
  • Remove container from utilities
  • DEV: Lock-on improvements
  • Use requestAnimationFrame
  • :bug: category & tag search regex to support thai character
  • Limit number of users addable to group at once
  • Duplicate categories and tags allowed in inputs where they shouldn’t be allowed
  • Group categories inputs not filled sometimes
  • Improve Vanilla importing
  • Current title wasn’t visible when assigning badge title
  • Ensures diversity code is not applied multiple times
  • Close picker on emoji selection when on mobile device
  • Add cache-busting parameter to ace-editor javascript
  • Removes us_pacific-new from the list of available timezones
  • Stop category logo + background being marked secure
  • Restrict personal_messages: advanced search filter to admin.
  • Correct personal_messages:`` advanced search filter.
  • Remove unnecessary audio/video parent element load
  • Prefer timezones over timezone for previews
  • Backups should use relative paths for local uploads
  • Display warning only if all users already added to the group
  • Topic.similar_to results in error if cooked raw is blank.
  • Bookmark list showing wrong no content message
  • Wizard could not send custom color schemes to the client correctly

UX Changes

  • Use simple list for settings without choice options
  • Ensures new-topic badge renders consistently
  • Remove the post number from a composer label
  • Replace “Loading…” in quotes with a spinner
  • Add width and height to GitHub onebox inline avatar in emails.
  • Update dark mode styling of new user overlay
  • Landscape spacing in iOS devices with a notch
  • Remove extraneous ellipsis after “loading”
  • Makes emoji picker case insensitive
  • Make the api-keys new and show page a little more responsive
  • Display moderators group name in the group dropdown menu.
  • Prevents auto capitalize/correct in the emoji picker
  • Add missing labels to mobile composer buttons
  • Hide category settings badges checkbox when enable_badges is off
  • Wrap extra long links in GitHub oneboxes instead of overflowing
  • Don’t wrap topic status icons in the header if there’s more than one
  • Restyle user menu so user links are findable
  • Make category topic counts clickable on mobile
  • Better handling of long category names and button bar in composer
  • Clarify timezone formatting
  • Show a generic error on upload for XHR status 0
  • Add category-title-before to categories-boxes layout
  • Timeline should jump to the bottom of the post in single-post topics
  • Minor layout fixes and improved consistency on theme admin
  • Improves picker on automatic dark themes
  • Lowercase tag name before checking it with topic title.
  • Tweaks to admin color palette dropdown

Performance

  • Remove category_user lookup when loading private messages.
  • Fix N+1 queries on private messages route.
  • Fix broken memoization in GroupShowSerializer.
  • Use 1 query to load group and tag notification default.
  • Remove an unncessary query when check for dark mode.
  • Memoize calls to ApplicationHelper#scheme_id.
  • Keep track of first unread PM and first unread group PM for user.
  • Don’t load all poll_votes for a poll
  • Add partial index on reviewables for topic view
  • Create a partial regular post_search_data index on large sites.
  • Avoid extra subquery when searching within PMs for normal user.
  • Defer indexing post for search when saving a post.
「いいね!」 26