Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

WIP: 2.9 updates #189

Draft
wants to merge 106 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
103a9f4
Fix sanitizer making block level elements unreadable (#10836)
Gargron Jun 16, 2019
f765cd9
Bump aws-sdk-s3 from 1.41.0 to 1.42.0 (#11030)
dependabot-preview[bot] Jun 17, 2019
7b058c5
Bump rubocop-rails from 2.0.0 to 2.0.1 (#11032)
dependabot-preview[bot] Jun 17, 2019
04b4d2b
Bump pghero from 2.2.0 to 2.2.1 (#11033)
dependabot-preview[bot] Jun 17, 2019
e67f380
Bump httplog from 1.3.0 to 1.3.1 (#11034)
dependabot-preview[bot] Jun 17, 2019
a9ba6a8
Bump eslint-plugin-import from 2.14.0 to 2.17.3 (#11037)
dependabot-preview[bot] Jun 17, 2019
bab2231
Bump autoprefixer from 9.5.1 to 9.6.0 (#11038)
dependabot-preview[bot] Jun 17, 2019
efb07f1
Bump webpack-bundle-analyzer from 3.1.0 to 3.3.2 (#11039)
dependabot-preview[bot] Jun 17, 2019
31eed31
Bump rellax from 1.7.1 to 1.10.0 (#11040)
dependabot-preview[bot] Jun 17, 2019
f453984
Bump webmock from 3.5.1 to 3.6.0 (#11031)
dependabot-preview[bot] Jun 17, 2019
10c4c21
Bump lograge from 0.11.1 to 0.11.2 (#11102)
dependabot-preview[bot] Jun 17, 2019
9639a7f
Bump ox from 2.10.1 to 2.11.0 (#11101)
dependabot-preview[bot] Jun 17, 2019
119cb4d
Bump file-loader from 3.0.1 to 4.0.0 (#11104)
dependabot-preview[bot] Jun 17, 2019
5443804
Bump capybara from 3.22.0 to 3.24.0 (#11100)
dependabot-preview[bot] Jun 17, 2019
85ec79c
Bump enzyme from 3.8.0 to 3.10.0 (#11107)
dependabot-preview[bot] Jun 17, 2019
7555a00
Bump webpack from 4.29.6 to 4.34.0 (#11108)
dependabot-preview[bot] Jun 17, 2019
b403c33
Bump webpack-cli from 3.3.2 to 3.3.4 (#11106)
dependabot-preview[bot] Jun 17, 2019
83dd4d4
Bump enzyme-adapter-react-16 from 1.7.1 to 1.14.0 (#11105)
dependabot-preview[bot] Jun 17, 2019
17747e2
Fix User#active scope only returning suspended users (#11111)
ClearlyClaire Jun 18, 2019
c8fae50
Completely hide toots matched by “irreversible” filters even if they …
ClearlyClaire Jun 18, 2019
ede0be5
New Crowdin translations (#11077)
Gargron Jun 18, 2019
26d3b2e
Add label for admin theme selector (#11121)
alixrossi Jun 19, 2019
e9a11dc
Fix inconsistent interpolation in sk.yml (#11124)
Gargron Jun 19, 2019
f7f23b4
Add audio uploads (#11123)
Gargron Jun 19, 2019
33144e1
Fix layout of identity proofs settings (#11126)
acid-chicken Jun 20, 2019
7696f77
Add moderation API (#9387)
Gargron Jun 20, 2019
8f23726
Fix converted media being saved with original extension and mime type…
Gargron Jun 20, 2019
49ebda4
Change audio format from ogg to mp3 for wider compatibility (#11141)
Gargron Jun 21, 2019
707ddf7
Change domain blocks to automatically support subdomains (#11138)
Gargron Jun 21, 2019
1b052c7
Remove expensive counters from federation page in admin UI (#11139)
Gargron Jun 21, 2019
6e7e714
New Crowdin translations (#11116)
Gargron Jun 21, 2019
84f945d
Bump version to 2.9.1 (#11143)
Gargron Jun 21, 2019
aa9b378
Fix audio not being downloaded from remote servers (#11145)
Gargron Jun 22, 2019
d61d164
Add `short_description` and `approval_required` to `GET /api/v1/insta…
Gargron Jun 22, 2019
6eb5241
Change camera icon to paperclip icon in upload form (#11149)
koyuawsmbrtn Jun 22, 2019
b927bb3
Fix audio-only OGG and WebM files not being processed as such (#11151)
Gargron Jun 22, 2019
8fe7116
New Crowdin translations (#11144)
Gargron Jun 22, 2019
b5c772c
Bump version to 2.9.2 (#11152)
Gargron Jun 22, 2019
66ac1bd
Fix unconverted PRs in the changelog (#11155)
Gargron Jun 22, 2019
c95ce1f
Fix account URI in UpdatePollSerializer (#11194)
ClearlyClaire Jun 27, 2019
de74794
Fix swiping columns on mobile sometimes failing (#11200)
ClearlyClaire Jun 28, 2019
aef567c
Fix option to send e-mail notification about account action always be…
Gargron Jul 6, 2019
5a06f68
Fix BackupService crashing when an attachment is missing (#11241)
ClearlyClaire Jul 8, 2019
8066717
Fix Status.remote scope matching *all* statuses (#11265)
ClearlyClaire Jul 8, 2019
6782922
Fix BlockService trying to reject incorrect follow request (#11288)
ClearlyClaire Jul 11, 2019
8904487
Fix invites not being disabled upon account suspension (#11412)
ClearlyClaire Jul 26, 2019
221110c
Update fuubar dependency to 2.4.1 (#11248)
nilsding Jul 7, 2019
0367ddb
Fix support for MP4 files that are actually M4V files (#11210)
Gargron Jun 30, 2019
5d79df0
Fix expiration date of filters being set to “Never” when editing them…
ClearlyClaire Jun 30, 2019
769bbd5
Fix statsd UDP sockets not being cleaned up in Sidekiq (#11230)
Gargron Jul 1, 2019
5cd97c6
Remove unused StatsD code and expose StatsD as a global variable (#11…
Gargron Jul 2, 2019
6a3876b
Fix some flash notices/alerts staying on unrelated pages (#11364)
ClearlyClaire Jul 19, 2019
d1d3684
Fix `alerts` booleans not being typecast correctly in push subscripti…
Gargron Jul 21, 2019
d588173
Optimize makeGetStatus (#11211)
ClearlyClaire Jun 29, 2019
363afe5
Memoize ancestorIds and descendantIds in detailed status view (#11234)
ClearlyClaire Jul 2, 2019
c83c87f
Fix boosting & unboosting preventing a boost from appearing in the TL…
ClearlyClaire Jul 30, 2019
74982c7
Fix delete regression (#11450)
Gargron Jul 31, 2019
6e28da2
Apply filters to poll options (#11174)
ClearlyClaire Jun 25, 2019
69680db
Fix unnecessary SQL query performed on unauthenticated requests (#11179)
Gargron Jun 25, 2019
0119092
Add message telling FTS is disabled when no toot can be found because…
ClearlyClaire Jun 27, 2019
5b3d70f
Display FTS warning based on actual search term, not the one being ty…
ClearlyClaire Jun 28, 2019
39741fa
Scroll to compose form rather than reply indicator on focus (#11182)
ClearlyClaire Jun 26, 2019
99b27a8
When sending a toot, ensure a CW is only set if the CW field is visib…
ClearlyClaire Jun 29, 2019
6abd849
When deleting & redrafting a poll, fill in closest expires_in (#11203)
ClearlyClaire Jul 1, 2019
16f3484
Only scroll to the compose form if it's not horizontally in the viewp…
ClearlyClaire Jul 6, 2019
af410c0
Display custom emoji in bio field names (#11350)
ClearlyClaire Jul 21, 2019
7f9431c
Play animated custom emoji on hover (#11348)
ClearlyClaire Jul 21, 2019
c8bf30d
Fix animate on hover in poll options without CW (#11404)
ClearlyClaire Jul 28, 2019
d9a0248
Change domain block behaviour to prevent creation of accounts from su…
Gargron Jul 1, 2019
f279569
Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (#11233)
Gargron Jul 1, 2019
b21c630
Change the retry limit in error of web push notification (#11292)
highemerly Jul 12, 2019
291d868
Change default interface of web and streaming from 0.0.0.0 to 127.0.0…
Gargron Jul 15, 2019
2e244b7
Make puma bind address configurable with BIND env var (#11326)
zunda Jul 16, 2019
227c561
Change terms and privacy policy pages to always be accessible (#11334)
Gargron Jul 17, 2019
212848b
Change language detection to include hashtags as words (#11341)
Gargron Jul 18, 2019
8c445c8
Fix only one middle dot being recognized in hashtags (#11345)
Gargron Jul 18, 2019
28f3b13
Change Dockerfile to bind to 0.0.0.0 instead of docker-compose.yml (#…
Gargron Jul 18, 2019
6c4a196
Fix sanitizing lists contents (#11354)
ClearlyClaire Jul 18, 2019
ad08668
Fix avatar animation on hover when not logged in (#11349)
ClearlyClaire Jul 19, 2019
d8b8c88
Added logout to dropdown menu (#11353)
koyuawsmbrtn Jul 19, 2019
dead24a
Disallow numeric-only hashtags (#11363)
ClearlyClaire Jul 19, 2019
9bb23b8
Change locale detection to run once per session (#8657)
Gargron Jul 21, 2019
4e4f73b
Bind servers to 0.0.0.0 in Procfile (#11378)
zunda Jul 22, 2019
ed27803
Change account domain block to clear out notifications and follows (#…
Gargron Jul 25, 2019
91fb945
Remove pre from version, add extra suffix variable (#11407)
clarfonthey Jul 26, 2019
a0896ae
Remove timestamps from converted images to make them deterministic (#…
Gargron Jul 27, 2019
c1bc34d
Prevent archiving when user set "noindex" (#11421)
tribela Jul 28, 2019
3f7614f
Disable list title validation button when list title is empty (#11475)
ClearlyClaire Aug 3, 2019
68da55e
Fix timestamp on featured tag (#11477)
tribela Aug 4, 2019
21e3671
Trap tab in modals (#11493)
ClearlyClaire Aug 6, 2019
d8cf2a0
Fix privacy dropdown active state when dropdown is placed on top of i…
ClearlyClaire Aug 6, 2019
ad6fcb2
Improve dropdown menu keyboard navigation (#11491)
ClearlyClaire Aug 6, 2019
cec93c3
Improve keyboard navigation in privacy dropdown (#11492)
ClearlyClaire Aug 6, 2019
c69f190
Fix image uploads being perfectly white when canvas read access is bl…
ClearlyClaire Aug 6, 2019
80e391a
Improve focus handling with dropdown menus (#11511)
ClearlyClaire Aug 7, 2019
6861534
Fix "cancel follow request" button having unreadable text in web UI (…
Gargron Aug 8, 2019
5432edb
Add GIF and WebP support for custom emojis (#11519)
Gargron Aug 8, 2019
b95281b
Fix pinned statuses API returning pagination headers (#11526)
Gargron Aug 8, 2019
d5963d9
Fix crash when saving invalid domain name (#11528)
Gargron Aug 8, 2019
80d8ff9
Fix “read more” button behing hidden (regression from #11404) (#11522)
ClearlyClaire Aug 8, 2019
06f906a
Bump version to 2.9.3
Gargron Aug 9, 2019
33954d0
Merge tag 'v2.9.3' into 2.9-updates
EliotBerriot Feb 25, 2020
efc9c8d
Fixed broken CI build (yarn.lock)
EliotBerriot Feb 25, 2020
821b860
Fix leak of arbitrary statuses through unfavourite action in REST API…
Gargron Feb 21, 2020
9bace2d
Bump version to 2.9.4
Gargron Feb 27, 2020
316d625
Merge tag 'v2.9.4' into 2.9-updates
EliotBerriot Feb 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,121 @@ changelog here.](https://github.com/tootsuite/mastodon/blob/master/CHANGELOG.md)

Please note that this project doesn't follow semantic versioning— for details please have a look at
our [README file].
## [2.9.4] - 2020-02-27
### Security

- Fix leak of arbitrary statuses through unfavourite action in REST API ([Gargron](https://github.com/tootsuite/mastodon/pull/13161))

## [2.9.3] - 2019-08-10
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was one conflict here

### Added

- Add GIF and WebP support for custom emojis ([Gargron](https://github.com/tootsuite/mastodon/pull/11519))
- Add logout link to dropdown menu in web UI ([koyuawsmbrtn](https://github.com/tootsuite/mastodon/pull/11353))
- Add indication that text search is unavailable in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11112), [ThibG](https://github.com/tootsuite/mastodon/pull/11202))
- Add `suffix` to `Mastodon::Version` to help forks ([clarfon](https://github.com/tootsuite/mastodon/pull/11407))
- Add on-hover animation to animated custom emoji in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11348), [ThibG](https://github.com/tootsuite/mastodon/pull/11404), [ThibG](https://github.com/tootsuite/mastodon/pull/11522))
- Add custom emoji support in profile metadata labels ([ThibG](https://github.com/tootsuite/mastodon/pull/11350))

### Changed

- Change default interface of web and streaming from 0.0.0.0 to 127.0.0.1 ([Gargron](https://github.com/tootsuite/mastodon/pull/11302), [zunda](https://github.com/tootsuite/mastodon/pull/11378), [Gargron](https://github.com/tootsuite/mastodon/pull/11351), [zunda](https://github.com/tootsuite/mastodon/pull/11326))
- Change the retry limit of web push notifications ([highemerly](https://github.com/tootsuite/mastodon/pull/11292))
- Change ActivityPub deliveries to not retry HTTP 501 errors ([Gargron](https://github.com/tootsuite/mastodon/pull/11233))
- Change language detection to include hashtags as words ([Gargron](https://github.com/tootsuite/mastodon/pull/11341))
- Change terms and privacy policy pages to always be accessible ([Gargron](https://github.com/tootsuite/mastodon/pull/11334))
- Change robots tag to include `noarchive` when user opts out of indexing ([Kjwon15](https://github.com/tootsuite/mastodon/pull/11421))

### Fixed

- Fix account domain block not clearing out notifications ([Gargron](https://github.com/tootsuite/mastodon/pull/11393))
- Fix incorrect locale sometimes being detected for browser ([Gargron](https://github.com/tootsuite/mastodon/pull/8657))
- Fix crash when saving invalid domain name ([Gargron](https://github.com/tootsuite/mastodon/pull/11528))
- Fix pinned statuses REST API returning pagination headers ([Gargron](https://github.com/tootsuite/mastodon/pull/11526))
- Fix "cancel follow request" button having unreadable text in web UI ([Gargron](https://github.com/tootsuite/mastodon/pull/11521))
- Fix image uploads being blank when canvas read access is blocked ([ThibG](https://github.com/tootsuite/mastodon/pull/11499))
- Fix avatars not being animated on hover when not logged in ([ThibG](https://github.com/tootsuite/mastodon/pull/11349))
- Fix overzealous sanitization of HTML lists ([ThibG](https://github.com/tootsuite/mastodon/pull/11354))
- Fix block crashing when a follow request exists ([ThibG](https://github.com/tootsuite/mastodon/pull/11288))
- Fix backup service crashing when an attachment is missing ([ThibG](https://github.com/tootsuite/mastodon/pull/11241))
- Fix account moderation action always sending e-mail notification ([Gargron](https://github.com/tootsuite/mastodon/pull/11242))
- Fix swiping columns on mobile sometimes failing in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11200))
- Fix wrong actor URI being serialized into poll updates ([ThibG](https://github.com/tootsuite/mastodon/pull/11194))
- Fix statsd UDP sockets not being cleaned up in Sidekiq ([Gargron](https://github.com/tootsuite/mastodon/pull/11230))
- Fix expiration date of filters being set to "never" when editing them ([ThibG](https://github.com/tootsuite/mastodon/pull/11204))
- Fix support for MP4 files that are actually M4V files ([Gargron](https://github.com/tootsuite/mastodon/pull/11210))
- Fix `alerts` not being typecast correctly in push subscription in REST API ([Gargron](https://github.com/tootsuite/mastodon/pull/11343))
- Fix some notices staying on unrelated pages ([ThibG](https://github.com/tootsuite/mastodon/pull/11364))
- Fix unboosting sometimes preventing a boost from reappearing on feed ([ThibG](https://github.com/tootsuite/mastodon/pull/11405), [Gargron](https://github.com/tootsuite/mastodon/pull/11450))
- Fix only one middle dot being recognized in hashtags ([Gargron](https://github.com/tootsuite/mastodon/pull/11345), [ThibG](https://github.com/tootsuite/mastodon/pull/11363))
- Fix unnecessary SQL query performed on unauthenticated requests ([Gargron](https://github.com/tootsuite/mastodon/pull/11179))
- Fix incorrect timestamp displayed on featured tags ([Kjwon15](https://github.com/tootsuite/mastodon/pull/11477))
- Fix privacy dropdown active state when dropdown is placed on top of it ([ThibG](https://github.com/tootsuite/mastodon/pull/11495))
- Fix filters not being applied to poll options ([ThibG](https://github.com/tootsuite/mastodon/pull/11174))
- Fix keyboard navigation on various dropdowns ([ThibG](https://github.com/tootsuite/mastodon/pull/11511), [ThibG](https://github.com/tootsuite/mastodon/pull/11492), [ThibG](https://github.com/tootsuite/mastodon/pull/11491))
- Fix keyboard navigation in modals ([ThibG](https://github.com/tootsuite/mastodon/pull/11493))
- Fix image conversation being non-deterministic due to timestamps ([Gargron](https://github.com/tootsuite/mastodon/pull/11408))
- Fix web UI performance ([ThibG](https://github.com/tootsuite/mastodon/pull/11211), [ThibG](https://github.com/tootsuite/mastodon/pull/11234))
- Fix scrolling to compose form when not necessary in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11246), [ThibG](https://github.com/tootsuite/mastodon/pull/11182))
- Fix save button being enabled when list title is empty in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11475))
- Fix poll expiration not being pre-filled on delete & redraft in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11203))
- Fix content warning sometimes being set when not requested in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/11206))

### Security

- Fix invites not being disabled upon account suspension ([ThibG](https://github.com/tootsuite/mastodon/pull/11412))
- Fix blocked domains still being able to fill database with account records ([Gargron](https://github.com/tootsuite/mastodon/pull/11219))

## [2.9.2] - 2019-06-22
### Added

- Add `short_description` and `approval_required` to `GET /api/v1/instance` ([Gargron](https://github.com/tootsuite/mastodon/pull/11146))

### Changed

- Change camera icon to paperclip icon in upload form ([koyuawsmbrtn](https://github.com/tootsuite/mastodon/pull/11149))

### Fixed

- Fix audio-only OGG and WebM files not being processed as such ([Gargron](https://github.com/tootsuite/mastodon/pull/11151))
- Fix audio not being downloaded from remote servers ([Gargron](https://github.com/tootsuite/mastodon/pull/11145))

## [2.9.1] - 2019-06-22
### Added

- Add moderation API ([Gargron](https://github.com/tootsuite/mastodon/pull/9387))
- Add audio uploads ([Gargron](https://github.com/tootsuite/mastodon/pull/11123), [Gargron](https://github.com/tootsuite/mastodon/pull/11141))

### Changed

- Change domain blocks to automatically support subdomains ([Gargron](https://github.com/tootsuite/mastodon/pull/11138))
- Change Nanobox configuration to bring it up to date ([danhunsaker](https://github.com/tootsuite/mastodon/pull/11083))

### Removed

- Remove expensive counters from federation page in admin UI ([Gargron](https://github.com/tootsuite/mastodon/pull/11139))

### Fixed

- Fix converted media being saved with original extension and mime type ([Gargron](https://github.com/tootsuite/mastodon/pull/11130))
- Fix layout of identity proofs settings ([acid-chicken](https://github.com/tootsuite/mastodon/pull/11126))
- Fix active scope only returning suspended users ([ThibG](https://github.com/tootsuite/mastodon/pull/11111))
- Fix sanitizer making block level elements unreadable ([Gargron](https://github.com/tootsuite/mastodon/pull/10836))
- Fix label for site theme not being translated in admin UI ([palindromordnilap](https://github.com/tootsuite/mastodon/pull/11121))
- Fix statuses not being filtered irreversibly in web UI under some circumstances ([ThibG](https://github.com/tootsuite/mastodon/pull/11113))
- Fix scrolling behaviour in compose form ([ThibG](https://github.com/tootsuite/mastodon/pull/11093))

## [2.9.0] - 2019-06-13
### Added

- **Add single-column mode in web UI** ([Gargron](https://github.com/tootsuite/mastodon/pull/10807), [Gargron](https://github.com/tootsuite/mastodon/pull/10848), [Gargron](https://github.com/tootsuite/mastodon/pull/11003), [Gargron](https://github.com/tootsuite/mastodon/pull/10961), [Hanage999](https://github.com/tootsuite/mastodon/pull/10915), [noellabo](https://github.com/tootsuite/mastodon/pull/10917), [abcang](https://github.com/tootsuite/mastodon/pull/10859), [Gargron](https://github.com/tootsuite/mastodon/pull/10820), [Gargron](https://github.com/tootsuite/mastodon/pull/10835), [Gargron](https://github.com/tootsuite/mastodon/pull/10809), [Gargron](https://github.com/tootsuite/mastodon/pull/10963), [noellabo](https://github.com/tootsuite/mastodon/pull/10883), [Hanage999](https://github.com/tootsuite/mastodon/pull/10839))
- Add waiting time to the list of pending accounts in admin UI ([Gargron](https://github.com/tootsuite/mastodon/pull/10985))
- Add a keyboard shortcut to hide/show media in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/10647), [Gargron](https://github.com/tootsuite/mastodon/pull/10838), [ThibG](https://github.com/tootsuite/mastodon/pull/10872))
- Add `account_id` param to `GET /api/v1/notifications` ([pwoolcoc](https://github.com/tootsuite/mastodon/pull/10796))
- Add confirmation modal for unboosting toots in web UI ([aurelien-reeves](https://github.com/tootsuite/mastodon/pull/10287))
- Add emoji suggestions to content warning and poll option fields in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/10555))
- Add `source` attribute to response of `DELETE /api/v1/statuses/:id` ([ThibG](https://github.com/tootsuite/mastodon/pull/10669))
- Add some caching for HTML versions of public status pages ([ThibG](https://github.com/tootsuite/mastodon/pull/10701))
- Add button to conveniently copy OAuth code ([ThibG](https://github.com/tootsuite/mastodon/pull/11065))

[README file]: ./README.md

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ ENV NODE_ENV="production"

# Tell rails to serve static files
ENV RAILS_SERVE_STATIC_FILES="true"
ENV BIND="0.0.0.0"

# Set the run user
USER mastodon
Expand Down
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem 'makara', '~> 0.4'
gem 'pghero', '~> 2.2'
gem 'dotenv-rails', '~> 2.7'

gem 'aws-sdk-s3', '~> 1.41', require: false
gem 'aws-sdk-s3', '~> 1.42', require: false
gem 'fog-core', '<= 2.1.0'
gem 'fog-openstack', '~> 0.3', require: false
gem 'paperclip', '~> 6.0'
Expand Down Expand Up @@ -63,7 +63,7 @@ gem 'nokogiri', '~> 1.10'
gem 'nsa', '~> 0.2'
gem 'oj', '~> 3.7'
gem 'ostatus2', '~> 2.0'
gem 'ox', '~> 2.10'
gem 'ox', '~> 2.11'
gem 'posix-spawn', git: 'https://github.com/rtomayko/posix-spawn', ref: '58465d2e213991f8afb13b984854a49fcdcc980c'
gem 'pundit', '~> 2.0'
gem 'premailer-rails'
Expand Down Expand Up @@ -109,14 +109,14 @@ group :production, :test do
end

group :test do
gem 'capybara', '~> 3.22'
gem 'capybara', '~> 3.24'
gem 'climate_control', '~> 0.2'
gem 'faker', '~> 1.9'
gem 'microformats', '~> 4.1'
gem 'rails-controller-testing', '~> 1.0'
gem 'rspec-sidekiq', '~> 3.0'
gem 'simplecov', '~> 0.16', require: false
gem 'webmock', '~> 3.5'
gem 'webmock', '~> 3.6'
gem 'parallel_tests', '~> 2.29'
end

Expand Down
36 changes: 18 additions & 18 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ GEM
av (0.9.0)
cocaine (~> 0.5.3)
aws-eventstream (1.0.3)
aws-partitions (1.169.0)
aws-sdk-core (3.54.0)
aws-partitions (1.175.0)
aws-sdk-core (3.55.0)
aws-eventstream (~> 1.0, >= 1.0.2)
aws-partitions (~> 1.0)
aws-sigv4 (~> 1.1)
jmespath (~> 1.0)
aws-sdk-kms (1.21.0)
aws-sdk-core (~> 3, >= 3.53.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.41.0)
aws-sdk-s3 (1.42.0)
aws-sdk-core (~> 3, >= 3.53.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.1)
Expand Down Expand Up @@ -129,7 +129,7 @@ GEM
sshkit (~> 1.3)
capistrano-yarn (2.0.2)
capistrano (~> 3.0)
capybara (3.22.0)
capybara (3.24.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
Expand Down Expand Up @@ -253,7 +253,7 @@ GEM
railties (>= 4.0.1)
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashdiff (0.3.7)
hashdiff (0.4.0)
hashie (3.6.0)
heapy (0.1.4)
highline (2.0.1)
Expand All @@ -269,7 +269,7 @@ GEM
domain_name (~> 0.5)
http-form_data (2.1.1)
http_accept_language (2.1.1)
httplog (1.3.0)
httplog (1.3.1)
rack (>= 1.0)
rainbow (>= 2.0.0)
i18n (1.6.0)
Expand Down Expand Up @@ -320,7 +320,7 @@ GEM
letter_opener (~> 1.0)
railties (>= 3.2)
link_header (0.0.8)
lograge (0.11.1)
lograge (0.11.2)
actionpack (>= 4)
activesupport (>= 4)
railties (>= 4)
Expand Down Expand Up @@ -385,7 +385,7 @@ GEM
addressable (~> 2.5)
http (~> 3.0)
nokogiri (~> 1.8)
ox (2.10.1)
ox (2.11.0)
paperclip (6.0.0)
activemodel (>= 4.2.0)
activesupport (>= 4.2.0)
Expand All @@ -404,7 +404,7 @@ GEM
equatable (~> 0.5.0)
tty-color (~> 0.4.0)
pg (1.1.4)
pghero (2.2.0)
pghero (2.2.1)
activerecord
pkg-config (1.3.7)
premailer (1.11.1)
Expand Down Expand Up @@ -534,15 +534,15 @@ GEM
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-rails (2.0.0)
rack (>= 2.0)
rubocop-rails (2.0.1)
rack (>= 1.1)
rubocop (>= 0.70.0)
ruby-progressbar (1.10.1)
ruby-saml (1.9.0)
nokogiri (>= 1.5.10)
rufus-scheduler (3.5.2)
fugit (~> 1.1, >= 1.1.5)
safe_yaml (1.0.4)
safe_yaml (1.0.5)
sanitize (5.0.0)
crass (~> 1.0.2)
nokogiri (>= 1.8.0)
Expand Down Expand Up @@ -624,10 +624,10 @@ GEM
uniform_notifier (1.12.1)
warden (1.2.8)
rack (>= 2.0.6)
webmock (3.5.1)
webmock (3.6.0)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
hashdiff (>= 0.4.0, < 2.0.0)
webpacker (4.0.7)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
Expand All @@ -650,7 +650,7 @@ DEPENDENCIES
active_record_query_trace (~> 1.6)
addressable (~> 2.6)
annotate (~> 2.7)
aws-sdk-s3 (~> 1.41)
aws-sdk-s3 (~> 1.42)
better_errors (~> 2.5)
binding_of_caller (~> 0.7)
blurhash (~> 0.1)
Expand All @@ -663,7 +663,7 @@ DEPENDENCIES
capistrano-rails (~> 1.4)
capistrano-rbenv (~> 2.1)
capistrano-yarn (~> 2.0)
capybara (~> 3.22)
capybara (~> 3.24)
charlock_holmes (~> 0.7.6)
chewy (~> 5.0)
cld3 (~> 3.2.4)
Expand Down Expand Up @@ -714,7 +714,7 @@ DEPENDENCIES
omniauth-rails_csrf_protection (~> 0.1)
omniauth-saml (~> 1.10)
ostatus2 (~> 2.0)
ox (~> 2.10)
ox (~> 2.11)
paperclip (~> 6.0)
paperclip-av-transcoder (~> 0.6)
parallel_tests (~> 2.29)
Expand Down Expand Up @@ -761,7 +761,7 @@ DEPENDENCIES
tty-prompt (~> 0.19)
twitter-text (~> 1.14)
tzinfo-data (~> 1.2019)
webmock (~> 3.5)
webmock (~> 3.6)
webpacker (~> 4.0)
webpush

Expand Down
14 changes: 13 additions & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
web: bundle exec puma -C config/puma.rb
web: if [ "$RUN_STREAMING" != "true" ]; then BIND=0.0.0.0 bundle exec puma -C config/puma.rb; else BIND=0.0.0.0 node ./streaming; fi
worker: bundle exec sidekiq

# For the streaming API, you need a separate app that shares Postgres and Redis:
#
# heroku create
# heroku buildpacks:add heroku/nodejs
# heroku config:set RUN_STREAMING=true
# heroku addons:attach <main-app>::DATABASE
# heroku addons:attach <main-app>::REDIS
#
# and let the main app use the separate app:
#
# heroku config:set STREAMING_API_BASE_URL=wss://<streaming-app>.herokuapp.com -a <main-app>
2 changes: 1 addition & 1 deletion app/chewy/statuses_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class StatusesIndex < Chewy::Index
field :id, type: 'long'
field :account_id, type: 'long'

field :text, type: 'text', value: ->(status) { [status.spoiler_text, Formatter.instance.plaintext(status)].concat(status.media_attachments.map(&:description)).join("\n\n") } do
field :text, type: 'text', value: ->(status) { [status.spoiler_text, Formatter.instance.plaintext(status)].concat(status.media_attachments.map(&:description)).concat(status.preloadable_poll ? status_preloadable_poll.options : []).join("\n\n") } do
field :stemmed, type: 'text', analyzer: 'content'
end

Expand Down
2 changes: 2 additions & 0 deletions app/controllers/about_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class AboutController < ApplicationController

before_action :set_instance_presenter, only: [:show, :more, :terms]

skip_before_action :check_user_permissions, only: [:more, :terms]

def show
@hide_navbar = true
end
Expand Down
1 change: 1 addition & 0 deletions app/controllers/admin/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def filter_params
:by_domain,
:active,
:pending,
:disabled,
:silenced,
:suspended,
:username,
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/admin/domain_blocks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def create
authorize :domain_block, :create?

@domain_block = DomainBlock.new(resource_params)
existing_domain_block = resource_params[:domain].present? ? DomainBlock.find_by(domain: resource_params[:domain]) : nil
existing_domain_block = resource_params[:domain].present? ? DomainBlock.rule_for(resource_params[:domain]) : nil

if existing_domain_block.present? && !@domain_block.stricter_than?(existing_domain_block)
@domain_block.save
flash[:alert] = I18n.t('admin.domain_blocks.existing_domain_block_html', name: existing_domain_block.domain, unblock_url: admin_domain_block_path(existing_domain_block)).html_safe # rubocop:disable Rails/OutputSafety
flash.now[:alert] = I18n.t('admin.domain_blocks.existing_domain_block_html', name: existing_domain_block.domain, unblock_url: admin_domain_block_path(existing_domain_block)).html_safe # rubocop:disable Rails/OutputSafety
@domain_block.errors[:domain].clear
render :new
else
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/admin/instances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def show
@blocks_count = Block.where(target_account: Account.where(domain: params[:id])).count
@available = DeliveryFailureTracker.available?(Account.select(:shared_inbox_url).where(domain: params[:id]).first&.shared_inbox_url)
@media_storage = MediaAttachment.where(account: Account.where(domain: params[:id])).sum(:file_file_size)
@domain_block = DomainBlock.find_by(domain: params[:id])
@domain_block = DomainBlock.rule_for(params[:id])
end

private
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/api/v1/accounts/statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
class Api::V1::Accounts::StatusesController < Api::BaseController
before_action -> { authorize_if_got_token! :read, :'read:statuses' }
before_action :set_account
after_action :insert_pagination_headers

after_action :insert_pagination_headers, unless: -> { truthy_param?(:pinned) }

respond_to :json

Expand Down
Loading