Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump faker from 2.13.0 to 2.17.0 #659

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
aecdaf5
Do not serve account actors at all in limited federation mode (#14800)
ClearlyClaire Sep 14, 2020
0abfa06
Fix inefficiencies in fan-out-on-write service (#14682)
Gargron Aug 30, 2020
c98b775
Fix limited follower id in fan-out-on-write service (#14709)
noellabo Aug 31, 2020
4acfc3c
Fix handling of Reject Follow when a matching follow relationship exi…
ClearlyClaire Aug 1, 2020
8f79ed0
Fix reported statuses not being included in warning e-mail (#14778)
Gargron Sep 13, 2020
ce6aaed
Remove dependency on goldfinger gem (#14919)
Gargron Oct 7, 2020
3f4ccee
Fix videos with near-60 fps being rejected (#14684)
Gargron Aug 29, 2020
58c59af
Fix an error when file_file_size is nil in tootctl media remove (#14657)
noellabo Aug 24, 2020
856cb96
Fix new audio player features not working on Safari (#14465)
ClearlyClaire Aug 2, 2020
399c5f0
Change content-type to be always computed from file data (#14452)
ClearlyClaire Aug 2, 2020
469c4c7
Fix audio player on Safari (#14485)
ClearlyClaire Aug 2, 2020
1995a5c
Fix audio/video player not using CDN_HOST in media paths on public pa…
ClearlyClaire Aug 2, 2020
3b699f1
Fix thumbnail color extraction (#14464)
ClearlyClaire Aug 2, 2020
6db143e
Fix crash when failing to load emoji picker (#14525)
ClearlyClaire Aug 8, 2020
8b448ae
Fix `tootctl media` commands not handling snowflake ids for media_att…
ClearlyClaire Aug 9, 2020
aea0161
Add support for inlined objects in activity audience (#14514)
ClearlyClaire Aug 24, 2020
dd3a86e
Fix: also use custom private boost icon for detailed status (#14471)
OmmyZhang Aug 24, 2020
aa98655
Fix dereferencing remote statuses not using the correct account (#14656)
ClearlyClaire Aug 24, 2020
4ea7193
Add support for latest HTTP Signatures spec draft (#14556)
ClearlyClaire Aug 24, 2020
a583e54
Bump version to 3.2.1
Gargron Oct 19, 2020
0b77836
[Change] 日本語検索に関する最適化
highemerly Sep 13, 2019
a346abf
[Change] 投票投稿時のWeb/API上のパラメータを修正
highemerly Sep 13, 2019
a052845
[Add] Announcement機能をマージ
highemerly Sep 13, 2019
1a0e021
[Change] .gitignoreに独自関連機能関連ファイルを追加
highemerly Nov 30, 2019
5699fb6
[Fix] 本家announcementsの導入に伴うCSSのclass name空間重複に関する問題を修正
highemerly Jan 26, 2020
b51574b
[Add] サイトテーマにInstanceTicker type12 (ごま味) を追加
highemerly Jan 26, 2020
462aa37
[Change] タイムライン取得上限値を400から1200に変更
highemerly Jan 28, 2020
c5ac2d7
[Add] 独自CSSを mods/handon.scss として組み込み
highemerly Jan 28, 2020
2108e22
[Change] アカウント登録申請理由に関する表現を変更
highemerly Feb 16, 2020
8daf8be
[Change] トレンドタグの選出条件を緩くした
highemerly Apr 5, 2020
f35692d
[Change] TL上にブックマーク登録用のアクションボタンを追加
highemerly Aug 17, 2020
4f8b8cc
プロフィール絵文字を追加 (best-friends/mastodon)
highemerly Sep 2, 2020
4f7f46c
[Add] カスタム絵文字のみの投稿をスタンプのように拡大表示
highemerly Nov 3, 2020
615e3f9
[Fix] 通知カラムでDMマークの色が変わらなかった問題を修正
highemerly Nov 3, 2020
fb4a8f8
[Fix] InstanceTickerを有効にしても自インスタンスではティッカーを表示しない設定を通知欄にも適用
highemerly Nov 3, 2020
a129e68
Bump faker from 2.13.0 to 2.17.0
dependabot[bot] Mar 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -67,3 +67,7 @@ yarn-debug.log

# Ignore Docker option files
docker-compose.override.yml

# Add by highemerly
public/announcements.json
public/server-info.html
29 changes: 29 additions & 0 deletions CHANGELOG.md
Expand Up @@ -3,6 +3,35 @@ Changelog

All notable changes to this project will be documented in this file.

## [3.2.1] - 2020-10-19
### Added

- Add support for latest HTTP Signatures spec draft ([ThibG](https://github.com/tootsuite/mastodon/pull/14556))
- Add support for inlined objects in ActivityPub `to`/`cc` ([ThibG](https://github.com/tootsuite/mastodon/pull/14514))

### Changed

- Change actors to not be served at all without authentication in limited federation mode ([ThibG](https://github.com/tootsuite/mastodon/pull/14800))
- Previously, a bare version of an actor was served when not authenticated, i.e. username and public key
- Because all actor fetch requests are signed using a separate system actor, that is no longer required

### Fixed

- Fix `tootctl media` commands not recognizing very large IDs ([ThibG](https://github.com/tootsuite/mastodon/pull/14536))
- Fix crash when failing to load emoji picker in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/14525))
- Fix contrast requirements in thumbnail color extraction ([ThibG](https://github.com/tootsuite/mastodon/pull/14464))
- Fix audio/video player not using `CDN_HOST` on public pages ([ThibG](https://github.com/tootsuite/mastodon/pull/14486))
- Fix private boost icon not being used on public pages ([OmmyZhang](https://github.com/tootsuite/mastodon/pull/14471))
- Fix audio player on Safari in web UI ([ThibG](https://github.com/tootsuite/mastodon/pull/14485), [ThibG](https://github.com/tootsuite/mastodon/pull/14465))
- Fix dereferencing remote statuses not using the correct account for signature when receiving a targeted inbox delivery ([ThibG](https://github.com/tootsuite/mastodon/pull/14656))
- Fix nil error in `tootctl media remove` ([noellabo](https://github.com/tootsuite/mastodon/pull/14657))
- Fix videos with near-60 fps being rejected ([Gargron](https://github.com/tootsuite/mastodon/pull/14684))
- Fix reported statuses not being included in warning e-mail ([Gargron](https://github.com/tootsuite/mastodon/pull/14778))
- Fix `Reject` activities of `Follow` objects not correctly destroying a follow relationship ([ThibG](https://github.com/tootsuite/mastodon/pull/14479))
- Fix inefficiencies in fan-out-on-write service ([Gargron](https://github.com/tootsuite/mastodon/pull/14682), [noellabo](https://github.com/tootsuite/mastodon/pull/14709))
- Fix timeout errors when trying to webfinger some IPv6 configurations ([Gargron](https://github.com/tootsuite/mastodon/pull/14919))
- Fix files served as `application/octet-stream` being rejected without attempting mime type detection ([ThibG](https://github.com/tootsuite/mastodon/pull/14452))

## [3.2.0] - 2020-07-27
### Added

Expand Down
3 changes: 1 addition & 2 deletions Gemfile
Expand Up @@ -54,7 +54,6 @@ gem 'doorkeeper', '~> 5.4'
gem 'ed25519', '~> 1.2'
gem 'fast_blank', '~> 1.0'
gem 'fastimage'
gem 'goldfinger', '~> 2.1'
gem 'hiredis', '~> 0.6'
gem 'redis-namespace', '~> 1.7'
gem 'health_check', git: 'https://github.com/ianheggie/health_check', ref: '0b799ead604f900ed50685e9b2d469cd2befba5b'
Expand Down Expand Up @@ -121,7 +120,7 @@ end
group :test do
gem 'capybara', '~> 3.33'
gem 'climate_control', '~> 0.2'
gem 'faker', '~> 2.13'
gem 'faker', '~> 2.17'
gem 'microformats', '~> 4.2'
gem 'rails-controller-testing', '~> 1.0'
gem 'rspec-sidekiq', '~> 3.1'
Expand Down
12 changes: 3 additions & 9 deletions Gemfile.lock
Expand Up @@ -219,7 +219,7 @@ GEM
tzinfo
excon (0.75.0)
fabrication (2.21.1)
faker (2.13.0)
faker (2.17.0)
i18n (>= 1.6, < 2)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
Expand Down Expand Up @@ -250,11 +250,6 @@ GEM
ruby-progressbar (~> 1.4)
globalid (0.4.2)
activesupport (>= 4.2.0)
goldfinger (2.1.1)
addressable (~> 2.5)
http (~> 4.0)
nokogiri (~> 1.8)
oj (~> 3.0)
hamlit (2.11.0)
temple (>= 0.8.2)
thor
Expand Down Expand Up @@ -286,7 +281,7 @@ GEM
httplog (1.4.3)
rack (>= 1.0)
rainbow (>= 2.0.0)
i18n (1.8.3)
i18n (1.8.9)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.31)
activesupport (>= 4.0.2)
Expand Down Expand Up @@ -702,13 +697,12 @@ DEPENDENCIES
e2mmap (~> 0.1.0)
ed25519 (~> 1.2)
fabrication (~> 2.21)
faker (~> 2.13)
faker (~> 2.17)
fast_blank (~> 1.0)
fastimage
fog-core (<= 2.1.0)
fog-openstack (~> 0.3)
fuubar (~> 2.5)
goldfinger (~> 2.1)
hamlit-rails (~> 0.2)
health_check!
hiredis (~> 0.6)
Expand Down
27 changes: 9 additions & 18 deletions app/chewy/statuses_index.rb
Expand Up @@ -2,30 +2,21 @@

class StatusesIndex < Chewy::Index
settings index: { refresh_interval: '15m' }, analysis: {
filter: {
english_stop: {
type: 'stop',
stopwords: '_english_',
},
english_stemmer: {
type: 'stemmer',
language: 'english',
},
english_possessive_stemmer: {
type: 'stemmer',
language: 'possessive_english',
tokenizer: {
kuromoji_user_dict: {
type: 'kuromoji_tokenizer',
user_dictionary: 'userdic.txt',
},
},
analyzer: {
content: {
tokenizer: 'uax_url_email',
type: 'custom',
tokenizer: 'kuromoji_user_dict',
filter: %w(
english_possessive_stemmer
lowercase
asciifolding
kuromoji_baseform
kuromoji_stemmer
cjk_width
english_stop
english_stemmer
lowercase
),
},
},
Expand Down
11 changes: 2 additions & 9 deletions app/controllers/accounts_controller.rb
Expand Up @@ -7,6 +7,7 @@ class AccountsController < ApplicationController
include AccountControllerConcern
include SignatureAuthentication

before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? }
before_action :set_cache_headers
before_action :set_body_classes

Expand Down Expand Up @@ -49,7 +50,7 @@ def show

format.json do
expires_in 3.minutes, public: !(authorized_fetch_mode? && signed_request_account.present?)
render_with_cache json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to
render_with_cache json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter
end
end
end
Expand Down Expand Up @@ -149,12 +150,4 @@ def filtered_status_page
def params_slice(*keys)
params.slice(*keys).permit(*keys)
end

def restrict_fields_to
if signed_request_account.present? || public_fetch_mode?
# Return all fields
else
%i(id type preferred_username inbox public_key endpoints)
end
end
end