mastodon 发布版本: v2.4.3

Mastodon

Features:

Add more granular OAuth scopes (#7929)

Additionally to existing read, write, follow and push scopes, there are now read and write scopes limited to particular areas of the API, so an app could request to manage your blocks for you without gaining access to posting from your account or following other people. See the PR for details.

Keyword/phrase filtering (#7905)

A better alternative to the old client-side regex filter function: You can now define keywords or phrases to be hidden, choose which contexts (like home timeline vs notifications vs public timelines) the filter should be active in, and whether it should expire after a time. Comes with a new REST API so apps can manage filters and streaming API updates for client-side filtering.

GET|POST /api/v1/filters
GET|PUT|DELETE /api/v1/filters/:id

Follow recommendations API (#7918)

Interaction data is technically already in Mastodon in the form of status and favourite records, but costly to query. Mastodon will now denormalize such interaction data specifically for interactions with people you are not following (colloquially: "here is a list of people I often reblog/fave but am not following yet"). The idea is that you may have lots of positive interactions with someone, but forget to click follow on their profile. The new API method will return such results. No user interface yet.

GET /api/v1/suggestions
DELETE /api/v1/suggestions/:account_id

Other:

  • Add admin setting to enable OpenGraph previews for sensitive media (#7962)
  • Allow the media modal to be closed by pressing back (#7934)

Fixes:

  • Fix broken single column getting-started menu (#7862)
  • Fix CW field still having animation in when reduce motion is enabled (#7872)
  • Disable reverted index changes (#7871)
  • Fix jpeg files sometimes being returned with a .jpe extension (#7881)
  • Fix Chrome issue with sizes="0px" (#7886)
  • Add /mastodon/bin to $PATH (#7889)
  • Add .bundle to .dockerignore (#7895)
  • Add symbolic link for yarnpkg (#7894)
  • On the mobile UI, move the search column to the right (#7877)
  • Typo in signature verification failure logging (#7916)
  • Improve embeds (#7919)
  • Display full username in tooltip on search and autosuggest (#7920)
  • Fix style of attachment list on /about (#7930)
  • Fix M hotkey inserting @undefined when in detailed status (#7931)
  • Fix unknown addon provider in scalingo.json (#7928)
  • Restore support to Ruby 2.3 (#7935)
  • Disable service worker media cache and IndexedDB storage (#7932)
  • What is on your mind -> What's on your mind (#7938)
  • Respect noindex rule in remote follow view (#7939)
  • Add white outline to dark emojis (#7936)
  • Fix dark background error on user-mention autosuggest in light theme (#7937)
  • Fix overlapping profile name and domain (#7927)
  • Crush PNGs to reduce overall size (#7954)
  • Check reblogged status for blocked/muted mentions (#7957)
  • In e-mail validator, fallback from MX to A record (#7955)
  • If signed in, redirect autofollow invite to profile page (#7956)
  • Send undo of boost to original poster if reblog (#7959)
  • Update Twemoji to v11 (#7911)
  • Example for TOR federation in docker-compose.yml (#7875)
  • Remove .p-name microformat class (#7961)
  • Add follow button to detailed status, add gradient to mask bio cut-off (#7979)

Upgrade notes:

As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump

Non-Docker only:

  • Dependency updates: bundle install

Both Docker and non-Docker:

  • This release includes database migrations, that means you need to run RAILS_ENV=production bundle exec rails db:migrate (in Docker: docker-compose run --rm web rails db:migrate).
  • This release includes changes to assets, that means you need to run RAILS_ENV=production bundle exec rails assets:precompile (in Docker: docker-compose run --rm web rails assets:precompile)

Contributors to this release:

@ariasuni @d6rkaiz @Dryusdan @fvh-P @Gargron @hcmiya @hinaloe @kedamaDQ @m4sk1n @MaciekBaron @mareklach @martymcguire @NecroTechno @lynlynlynx @Quenty31 @renatolond @SerCom-KC @shuheiktgw @takayamaki @ThibG @u1-liquid @usbsnowcrash @ykzts @zunda