Discourse 2.7.0.beta2 发布说明

2.7.0.beta2 中的新功能

:warning: 需要重建。重建将把软件包版本更新到最新,如果网站在过去一周内未通过命令行重建,则必须执行此操作。

:warning: 数据库版本升级。重建将把网站的数据库升级到 PostgreSQL 13。请查看 PostgreSQL 13 update 了解详细信息,特别是对于存储受限的服务器。

添加英语(英国)作为语言环境

你拼写“防御”时用 ‘c’ 吗?拼写“目录”时用 ue 吗?在“轮胎”中加 ‘y’ 还是在“颜色”中加 ‘u’?好消息,Discourse 现在支持英语(英国)。所以,享受你的假期,喝着气泡饮料,吃着饼干;穿着运动鞋去跑步;在公寓里裹着温暖的毛衣,依偎在壁炉旁。而我则在这里努力弄明白自己刚才写了什么 :smiley:

发现翻译中有不太准确的地方?请访问 https://translate.discourse.org 帮助贡献英语(英国)以及其他多种语言的翻译。

站点文本自定义语言选择器

此前,管理员需要先在用户个人资料中将界面语言设置为相关语言,然后才能覆盖任何站点文本。对于多语言社区,这可能意味着需要在个人资料和文本自定义页面之间反复切换。现在,我们在自定义页面顶部添加了语言选择器:

勿扰模式

勿扰模式来了!禁用通知和邮件,让你专注于手头的工作。勿扰模式可以设置为一段特定时间,或直到第二天。你还可以设置通知计划,使其每天自动启用勿扰模式。这可以在“用户偏好设置” → “通知”中完成。更多详情,请参阅 https://meta.discourse.org/t/do-not-disturb-mode/173734。
image

无障碍性改进

Discourse 最近进行了无障碍性审计“闪电评估”。该评估检查了 Discourse 的关键部分,以确保其符合 Web 内容无障碍指南的 AA 级标准。基于此次审计,Discourse 已进行了一些改进,并将在接下来的几个测试版发布中继续进行。

系统用户头像使用 logo small

网站上的系统用户现在将使用站点设置中的小标志,而不是通用的齿轮图标。当执行系统操作或发送自动私信时,这将使网站呈现出更具特定风格的视觉效果。希望覆盖此设置的网站可以禁用 use_site_small_logo_as_system_avatar 站点设置。

默认启用所有域名的行内 Onebox

Discourse 长期以来一直支持 Onebox 功能。将链接单独放在一行,Discourse 会尝试提取链接源的网站标志、标题和描述,或显示链接图片或行内视频播放器的预览。但你知道吗?Discourse 还支持行内 Onebox?将链接粘贴在段落中,链接会自动替换为标题。例如,粘贴 https://en.wikipedia.org/wiki/Main_Page,它将显示为 https://en.wikipedia.org/wiki/Main_Page。

可选的筛选回复视图

默认禁用,网站可以启用 enable filtered replies view 站点设置,以更改帖子流中回复的查看方式。启用后,帖子流将刷新,仅将当前对话中标记为可见的回复显示出来。

分类组管理改进

分类版主现在可以编辑主题标题,以及列出/取消列出主题。

其他值得注意的功能

  • 允许禁用帖子自我删除
  • 当启用 Markdown 排版器时,将 -\u003e 替换为 -\u003e
  • 在行内 Onebox 标题中包含帖子编号
  • 将最大监控词长度从 50 增加到 100 个字符
  • 非工作人员用户可以使用共享草稿

还有更多!

等等,还有更多!我们尽力为你突出显示新功能和变更,但总是有太多变更无法一一详述。要获取新功能、错误修复、用户体验改进等的完整列表,请务必查看下面列出的“其他功能和修复”。

30 个赞

Plugin improvements

Many plugins

  • Bug fix
    • We’ve patched numerous bugs in many of our plugins
  • Translations
    • We’ve updated the translations in many of our plugins

GitHub

  • Improve contributors detection

Onebox

  • Support Instagram TV links
  • Display section title when URL contains fragment

WP Discourse

  • Now maintained by Angus and the Pavilion team
  • Use direct db r/w for values used and updated in publication logic
    • Adds get_post_meta_from_db and add_post_meta_to_db, which are direct substitutes for get_post_meta and add_post_meta that read and write directly to and from the db instead of using the wordpress object cache as first port of call.
    • Like the prior usage of add_post_meta, add_post_meta_to_db enforces uniqueness.
    • These new methods have only been applied to the meta value both used AND updated in the publish logic, i.e. discourse_post_id.
  • Update @wordpress/scripts to 12.1.0
  • State should not be initialized if postType is not allowed
  • Add option to enable/disable direct db usage
  • Formatting changes for the PHP codesniffer

Chat Integration

  • Add support for Webex Teams

Canned Replies

  • Hide hyperlink and calender buttons in editor

Assign

  • Show assigned user on search results

Code Review

  • Set API Key site setting as secret, requires click to display
  • Allow disablingt of automatic followup approval
  • Use default branch instead of ‘master’

Solved

  • Silently auto close solved topic

Subscriptions

  • Add coupon support

Additional Features and Fixes

Click to expand

New Features

  • Give user menu icons alt attributes
  • Support DISCOURSE_SMTP_FORCE_TLS option
  • Replace single dash arrows when the typographer is enabled.
  • Reason to reject user signup
  • IMAP detect spammed email and delete associated Discourse topic
  • Log when a group is deleted.
  • Add before-groups-index-container outlet
  • Warn admins when installing a theme that’s already installed
  • Disable post deletions by setting max_post_deletions to zero…
  • Add dash warning for using S3 without CDN
  • Introduce skip_auto_delete_reply_likes site setting
  • Explicitly ban outlier traffic sources in robots.txt
  • Special shortcut for searching for own posts
  • Adds support for the WEBP image format
  • Allow plugins to show custom HTML via renderTags
  • Allow plugins to preload custom data on search
  • Allow plugins to register demon processes
  • Allow IP anonymization via admin user controller API
  • Automatically disable slow mode.
  • Support for GitHub Codespaces development
  • Link to text customization when editing system badges
  • Adds back button to theme editor
  • Add after-topic-list-body plugin-outlet
  • Reviewed by filter.
  • Silently close topic

Bug Fixes

  • Embedded comments should only return regular posts
  • Show the fallback locale warning when both settings are enabled.
  • Change default for IncomingEmail#created_via to 0 (unknown) and make NOT NULL
  • I18n couldn’t find translations.
  • Allow max_redemptions_limit to be 1
  • Polish lang label
  • Don’t try to focus on a missing element
  • Support for single use invite links
  • Always show overriden colors filter
  • Remove rendering UX from ember models
  • Unescape emoji when pg headlines is used for search result blurb.
  • Do not email group user with user_private_message notification
  • Make sure login required skipped for confirm new email routes
  • CurrentUser was missing appEvents
  • Add Retry-Header to rate limited responses
  • Do not test bookmark rate limiter message
  • Do not process pop3 mails >` 1 week old
  • Add bookmark limits
  • Check for user presence before granting badge
  • Allow users to opt-out of using the site’s small logo as the system user avatar.
  • Acceptance/bookmarks test date issue
  • Make sure current user timezone is used for bookmark reminders from post dates
  • Remove migrate_from_s3 task that silently corrupts data
  • TopicTrackingState was initialized after Site
  • Url:refresh triggered when query params change
  • Stop incorrect emailing of group email from PostAlerter
  • Prevent users from converting the default theme to a component
  • IMAP post alerter race condition and code improvements
  • Render fancy title correctly in composer
  • Render topic fancy title in review queue
  • Make category change work with shared drafts
  • Prevents debouncing and query to override each other
  • Use ImageMagick to detect animated images
  • Safari iOS page title and url regression when sharing
  • Users can remove themselves from a PM even if they can still access it through a group.
  • Use the same time moment for related Redis calls in rate limiter
  • Sliding window end time in rate limiter
  • Make category slugs lowercase
  • Do not downsize or crop GIF images
  • Discobot exception when site_contact_username is promoted
  • Publish DND ends_at updates in httpdate format
  • Hiding a post should not trigger the duplicate check
  • Show unassigned component warning when installing multiple components successively
  • Reset theme install modal state on close
  • Hidden tags returned in extras of tags index json
  • Always truncate uncomplete emojis in excerpts
  • Broken emojis in topic excerpt
  • Do not include URL query in auto-generated CSP header
  • Don’t error topic RSS when posts are deleted
  • Don’t count HTML comments when calculating reply length.
  • Tab key should autocomplete like enter key does
  • Recurring was not working for some cases (eg: hours and unit >` 1)
  • Fix bg color of header on published page
  • Hide notification count on document title in Do Not Disturb
  • Validate type when picking an avatar.
  • Group SMTP email improvements
  • Inline Onebox should use encoding from Content-Type header when present
  • Prevents autocompoete of username to appear on right
  • Ensures defined expired_in is passed from write to write_entry
  • Correctly set scroll position when viewing a tag’s topic list.
  • Increase inventory lag for s3 to 2 days
  • Ensures recurring works when setting a start date in future
  • S3 CDN warning was showing wrong warning message
  • The title attribute of the diversity scales was incorrect
  • User destroyer spec
  • When the user is deleted anonymise category post
  • Show all topic statuses on full page search.
  • Use Redis replica host and port
  • Allow for final sigma in suggested usernames
  • Don’t enqueue imported users when there’re multiple custom fields.
  • Disallow zero-width and other non-printing characters in tags
  • Handle badge grant for deleted badge
  • Search topic title headline being truncated.
  • Missing PG topic title headline when pg headlines is enabled.
  • Autoplay videos must always be muted
  • Show restricted tags in bulk select
  • Re-run remove flag and queued post web hook migrations.
  • Make find_by_slug_path work with default slugs
  • Clear in-process theme cache after clearing DB cache
  • Missing default notification level on group creation
  • Scroll to the last position when navigating back to the tag topic list.
  • Bypass AnonymousCache for /srv/status route.
  • No email when the category is muted and mailing list is on
  • Do not forbid tags in /new-topic on mobile
  • Clear WordWatcher cache after topic_spec
  • Show quote replies when filtering
  • Show correct avatar in post stream bar
  • Users without shared drafts access can still have access to the category.
  • Make Oneboxer#apply insert block Oneboxes correctly
  • Show retina avatars on Chrome
  • Posts with Staff Colors were excluded from the group activity
  • Show ‘New’ filter when ‘none’ subcategory set
  • Normalize links by converting them to lower case
  • Build correct topic list filter
  • Logout redirect should only be /login for login_required sites
  • Use sql_fragment instead of sanitize_sql_array
  • notify_file_change was outputting a command to vim
  • Correct tracking when mute all categories
  • Don’t raise an error if a custom emoji image was deleted
  • Only block local edits for git-sourced themes
  • Prevent error when primary email is missing
  • Missing translation
  • Only cache reports with exceptions for 1 minute
  • Prevent usage of composer-action-undefined CSS class
  • Replace Vimeo iframes with a link in emails
  • Avoid clock skew issues when logging in with Google
  • Allow for cateogry edit routes of unknown depth
  • Remove custom ‘error’ action on build-category-route/discovery
  • Actually error when topic timer time is in the past
  • Removes extra slashes from URL
  • Generate correct prev and next topics page URL
  • Correct casing of whitelisted SVG elements
  • Restore dismissing the first notification
  • Local dates showed incorrect timezones with extra whitespace
  • Follow open in new tab site setting for bio links
  • Stop category 404s from breaking the router
  • Hide user id when hide_email_address_taken
  • Adjust reviewable menu placement on mobile
  • Include locale in cache key for not_found_topics
  • Use CDN for custom emojis
  • Group#flair_url must be a real URL
  • Do not replace smiling_face by slight_smile
  • Trigger an event when a post is bookmarked.
  • Stop using duplicate composer button ID
  • Correct link in the notification about moved post
  • Load .js files from plugins in qunit testing env
  • On invite redemption only update pending ReviewableUser record
  • URL encode tag name
  • Show/hide ignored users preferences
  • Don’t error-index category job when missing category

UX Changes

  • Fallback locale warning improvements.
  • Use uniform style for tag counts
  • Text customization for different languages.
  • Show a warning on the category edit page when category style is none and colors are disabled.
  • Stop attempts to convert the default theme to a component by removing button
  • Ellipsis hamburger menu link text when overflowing
  • Add space between links and text in labels
  • Improve color scheme choices in user prefs
  • Refactor topic list nav
  • Autocomplete suggestions should be unselected by default
  • Allow quick access profile content to scroll
  • Allows to copy/paste a list of | separated values in sk
  • Transition to edit URL when adding a category
  • Move do not disturb to profile panel
  • Text overflow user-{primary,secondary}-navigation
  • Move reply filter button on mobile
  • Adjust default menu width
  • Blend header colors
  • Don’t wrap menu text under icon
  • Add title attribute to watched word input
  • Make theme install modal more responsive
  • When input placeholders are too long, truncate with ellipsis
  • Remove timeline from print view, fix header in crawler view
  • Tweaks to filtered replies
  • Show required indication consistently on signup
  • Fix unreachable buttons on menus in Safari iOS
  • Add full date title to fps-result date
  • Makes sk components full width on users admin page
  • When requiring user fields at signup, also mark default fields as required
  • Fix invite checkbox width issue

Performance

  • Improve cook_url performance for topic thumbnails
  • Optimize homepage and topic performance
  • Add indexes to speed up profile pages
  • Run user merging task in a background job.
27 个赞