Discourse 2.6.0.beta3 发行说明

2.6.0.beta3 中的新功能

审核含媒体的帖子

Discourse 为站点管理员提供了多种审核已发布内容的选项。默认情况下,用户可以直接发布内容,无需经过管理员的事前审核。现有选项包括:要求用户的前 X 条帖子必须经过审批、审核所有未达到指定信任级别的用户发布的内容、审核未达到指定信任级别的用户发布的新主题、审核特定分类下的新主题和/或帖子等。

beta3 版本新增了一项站点设置:review media unless trust level(除非达到信任级别,否则审核媒体)。现在,站点可以配置为:所有包含嵌入媒体的主题或帖子在发布前必须由管理员审核。

区分群组提及和个人提及

此前,个人提及和群组提及在视觉上无法区分,两者都使用 @ 符号。虽然鼠标悬停时可以查看提及类型,但这在触控设备上无法使用,且不够直观。

为了在视觉上更好地区分这两种通知,我们现在为群组通知使用不同的图标。

现在显示效果如下:

image

我们使用了 Users 图标,并显示了创建提及的用户姓名以及被提及的群组名称。

作为对比,普通提及的显示效果如下:

image

默认允许在电子邮件中包含安全媒体图片

对于启用了 Secure Uploads 的站点,上传的媒体内容会在电子邮件中被屏蔽。
image

现在,Discourse 默认支持在电子邮件中包含图片,前提是图片大小不超过设定的限制。管理员可以通过站点设置 secure media allow embed images in emails(允许在电子邮件中嵌入安全媒体图片)和 secure media max email embed image size kb(安全媒体电子邮件嵌入图片最大尺寸 KB)来控制此功能。

允许管理员在界面中删除 SSO 记录

有时,Discourse 上的 SSO 记录会与身份验证提供商不同步。最常见的原因是用户在其中一个系统中更改了电子邮件地址,但未在另一个系统中更新。为了提供更好的工具来解决 SSO 冲突,管理员现在可以删除用户的 SSO 记录。这样,用户在下一次登录时将通过电子邮件进行匹配,而不是通过 SSO 的 external_id。

用户主题计时器已替换为书签提醒

用户主题计时器允许管理员设置计时器,以提醒他们返回某个主题。随着书签提醒功能在 2.5.0.beta3 版本中引入,现在所有用户都可以设置提醒。

因此,用户主题计时器已被移除,因为其功能完全被书签功能取代。所有现有的用户主题计时器已在主题的首帖中自动转换为书签提醒,转换规则如下:

  • 如果主题首帖没有书签,则创建一个带有提醒的书签
  • 如果主题首帖已有书签但设置提醒,则将其更新为主题计时器提醒
  • 如果主题楼主(OP)的帖子已有带提醒的书签,则丢弃主题计时器

用户可选择的颜色调色板

beta2 版本中改进的暗色模式支持 之后,现在站点可以将颜色调色板设置为可由用户选择,就像主题一样。这意味着站点不再需要配置两个主题来提供两种颜色;只需安装一个主题并添加用户可选择的颜色调色板即可。

用户导出中包含更多数据

长期以来,用户一直可以通过其偏好设置下载他们在站点上创建的所有主题和帖子。现在,该下载内容还包括额外的用户数据,如徽章、访问记录、书签等。

更便捷的字体控制

站点现在可以通过向导和站点设置自定义基础字体。

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 个赞