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 pg from 1.4.5 to 1.4.6 #644

Open
wants to merge 94 commits into
base: twingyeo-kr
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
1dbfc1a
feautre(config/themes): add custom fonts
unstabler Apr 2, 2021
d35c597
Merge tag 'v3.4.1' into twingyeo-kr
unstabler Jun 13, 2021
e62f488
Fix newlines in accout notes added by the Move handler (#16415)
ClearlyClaire Jun 23, 2021
987f945
Fix when MoveWorker cannot get locale from remote account (#16576)
noellabo Aug 8, 2021
c02d6c4
Fix invalid blurhash handling in Create activity (#16583)
noellabo Aug 9, 2021
4f85244
Fix crash when encountering invalid account fields (#16598)
ClearlyClaire Aug 11, 2021
f51c6cb
Fix remotely-suspended accounts' toots being merged back into timelin…
ClearlyClaire Aug 20, 2021
2688f18
Fix authentication failures after going halfway through a sign-in att…
ClearlyClaire Aug 25, 2021
5899fe7
Fix processing mentions to domains with non-ascii TLDs (#16689)
ClearlyClaire Sep 1, 2021
75441ac
Fix addressing of remote groups' followers (#16700)
ClearlyClaire Sep 8, 2021
663b58a
use relative path for `scope` (#16714)
HolgerHuo Sep 8, 2021
2396c90
Fix webauthn secure key authentication (#16792)
ClearlyClaire Sep 30, 2021
e63370d
Fix scheduled statuses decreasing statuses counts (#16791)
ClearlyClaire Oct 14, 2021
123a88b
Fix some link previews being incorrectly generated from other prior l…
ClearlyClaire Oct 21, 2021
aa828ae
Fix mastodon:setup to take dotenv/docker-compose differences into acc…
ClearlyClaire Oct 25, 2021
f366a23
Skip blocked domains media on tootctl media refresh (#16914)
tribela Oct 28, 2021
e1cf8d4
Fix statuses order in account's statuses admin page (#16937)
tribela Nov 4, 2021
d5a50e9
Add `configuration` attribute to `GET /api/v1/instance` (#16485)
Gargron Jul 10, 2021
c7f534a
Fix missing on_delete: :cascade for canonical_email_blocks foreign ke…
ClearlyClaire Jun 30, 2021
6b98fd0
Fix not being able to suspend accounts that already have a canonical …
Gargron Jul 2, 2021
9b34647
Fix followers synchronization mechanism not working when URI has empt…
ClearlyClaire Sep 15, 2021
4cc7efc
Fix some Rails frameworks being unnecessarily loaded (#16725)
ClearlyClaire Sep 13, 2021
40eaa87
Fix suspicious sign-in mail text being out of date (#16690)
ClearlyClaire Sep 4, 2021
e40d541
Fix crashes with Microsoft Translate on Microsoft Edge (#16525)
ClearlyClaire Jul 23, 2021
a1e5ff0
Fix tootctl self-destruct not sending Delete activities for recently-…
ClearlyClaire Oct 14, 2021
9a468c8
Fix inefficiencies in auto-linking code (#16506)
ClearlyClaire Jul 15, 2021
aebcb72
Fix serialization of followers/following counts when user hides their…
ClearlyClaire Jun 21, 2021
34ab411
Fix WebUI crash when a toot with a playing video gets deleted (#16384)
ClearlyClaire Jun 25, 2021
4bc1fde
Fix anonymous access to outbox not being cached by the reverse proxy …
ClearlyClaire Jul 3, 2021
8815e98
Fix pop-in player display when poster has long username or handle (#1…
ClearlyClaire Jul 5, 2021
be56033
Change number_to_human calls to always use 3-digits precision (#16469)
ClearlyClaire Jul 7, 2021
c79d471
Change references to tootsuite/mastodon to mastodon/mastodon (#16491)
ClearlyClaire Jul 13, 2021
986397b
Improve modal flow and back button handling (#16499)
ClearlyClaire Jul 13, 2021
c3a6f7b
Fix user email address being banned on self-deletion (#16503)
ClearlyClaire Jul 14, 2021
f60bb07
Fix handling announcements with links (#16941)
ClearlyClaire Nov 5, 2021
3251b8e
Fix reviving revoked sessions and invalidating login (#16943)
ClearlyClaire Nov 5, 2021
76c2028
Fix AccountNote not having a maximum length (#16942)
ClearlyClaire Nov 5, 2021
8a74d85
Bump version to 3.4.2
Gargron Nov 5, 2021
5c47a18
Fix login being broken due to inaccurately applied backport fix in 3.4.2
Gargron Nov 6, 2021
4b66688
Bump version to 3.4.3
Gargron Nov 6, 2021
77d0297
Fix replying from modal (#16516)
ClearlyClaire Jul 17, 2021
9c610ca
Fix “open” link of media modal not closing modal (#16524)
ClearlyClaire Jul 24, 2021
1bcb3da
Fix logout link not working in safari (#16574)
noellabo Aug 6, 2021
e65ede1
Fix upload of remote media with OpenStack Swift sometimes failing (#1…
ClearlyClaire Nov 16, 2021
22cd1e6
Fix confusing error when webfinger request returns empty document (#1…
ClearlyClaire Nov 14, 2021
e5113a8
Fix overflow of long profile fields in admin view (#17010)
ClearlyClaire Nov 19, 2021
3c18311
Fix error when suspending user with an already-existing canonical ema…
ClearlyClaire Nov 24, 2021
5e4b04d
Fix handling of recursive toots in WebUI (#17041)
ClearlyClaire Nov 25, 2021
f264cca
Fix filtering DMs from non-followed users (#17042)
ClearlyClaire Nov 25, 2021
4cd33a2
Fix "bundle exec rails mastodon:setup" crashing in some circumstances…
ClearlyClaire Nov 11, 2021
fd868f8
Bump version to 3.4.4
Gargron Nov 26, 2021
2de976a
Merge tag 'v3.4.4' into twingyeo-kr
unstabler Dec 30, 2021
b782f86
Fix some old migration scripts (#17394)
ClearlyClaire Jan 30, 2022
0dc103e
Fix edge case in migration helpers that caused crash because of Postg…
ClearlyClaire Jan 30, 2022
959234c
Save bundle config as local (#17188)
tribela Dec 25, 2021
2363b02
Bump ruby-saml from 1.11.0 to 1.13.0 (#16723)
ClearlyClaire Sep 10, 2021
0ae91e4
Build container image by GitHub Actions (#16973)
unasuke Nov 12, 2021
c8301bc
Change workflow to push to Docker Hub (#16980)
Gargron Nov 14, 2021
2c83b90
Add manual GitHub Actions runs (#17000)
Gargron Nov 16, 2021
03f0e98
Fix followers synchronization mechanism not working when URI has empt…
ClearlyClaire Aug 11, 2021
d722222
Add more advanced migration tests (#17393)
ClearlyClaire Jan 30, 2022
1c8c318
Bump version to 3.4.5
ClearlyClaire Jan 31, 2022
6d831fe
Fix spurious errors when receiving an Add activity for a private post…
ClearlyClaire Feb 2, 2022
c8dbbd6
Fix error-prone SQL queries (#15828)
ClearlyClaire Jan 23, 2022
fe02100
Compact JSON-LD signed incoming activities
puckipedia Jan 22, 2022
e2009ce
Fix compacted JSON-LD possibly causing compatibility issues on forwar…
ClearlyClaire Feb 2, 2022
b27f50d
Fix insufficient sanitization of report comments
ClearlyClaire Feb 2, 2022
df68d2e
Fix response_to_recipient? CTE
ClearlyClaire Dec 6, 2021
bf005ed
Change mastodon:webpush:generate_vapid_key task to not require functi…
ClearlyClaire Jan 20, 2022
a06dda4
disable legacy XSS filtering (#17289)
Wonderfall Jan 24, 2022
bb7b286
Bump version to 3.4.6
ClearlyClaire Feb 2, 2022
93a6c14
Fix insufficient sanitization of report comments (#17430)
ClearlyClaire Feb 3, 2022
752c6fc
Merge tag 'v3.4.6' into twingyeo-kr
unstabler Feb 4, 2022
ec1bb2a
Fix being able to bypass e-mail restrictions
Gargron Feb 28, 2022
cc706b1
Fix being able to post URLs longer than 4096 characters
Gargron Mar 22, 2022
2a28247
Bump version to 3.4.7
Gargron Mar 30, 2022
d1895ed
Merge tag 'v3.4.7' into twingyeo-kr
unstabler Apr 15, 2022
6cd2045
Merge tag 'v3.5.1' into twingyeo-kr
unstabler Apr 15, 2022
d68b654
feature(statuses_index): use nori tokenizer for analyzing korean texts
unstabler Apr 29, 2022
aca2d87
Merge branch 'patch/twvariant-fulltext-use-nori-tokenizer' into twing…
unstabler Apr 29, 2022
7c82d58
Merge tag 'v3.5.2' into twingyeo-kr
unstabler May 11, 2022
fb87741
feature(themes): add wide-column theme
unstabler May 12, 2022
e4d6163
Merge branch 'feature/twvariant-add-widecolumn-theme' into twingyeo-kr
unstabler May 12, 2022
fe5b700
Merge tag 'v3.5.3' into twingyeo-kr
unstabler Jun 30, 2022
2f9da1a
Merge tag 'v4.0.0' into twingyeo-kr
unstabler Nov 15, 2022
8770cbe
Merge tag 'v4.0.1' into twingyeo-kr
unstabler Nov 15, 2022
d59f7d1
Merge tag 'v4.0.2' into twingyeo-kr
unstabler Nov 15, 2022
8df0996
add +twvariant suffix to version.rb
unstabler Nov 15, 2022
2b6b25a
fix(i18n/ko): change '게시' back to '뿌우'.
unstabler Nov 15, 2022
940d43a
add bigemoji style
sftblw Nov 30, 2022
08f091d
Merge pull request #487 from sftblw/twingyeo-kr
unstabler Dec 7, 2022
98f4d61
Merge tag 'v4.1.0' into twingyeo-kr
unstabler Feb 11, 2023
d6f2a53
remove font themes with ambiguous licenses
unstabler Feb 11, 2023
dc2e81d
Bump pg from 1.4.5 to 1.4.6
dependabot[bot] Feb 27, 2023
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,7 @@ yarn-debug.log

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

# twingyeo.kr
*.woff
*.woff2
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ GEM
parslet (2.0.0)
pastel (0.8.0)
tty-color (~> 0.5)
pg (1.4.5)
pg (1.4.6)
pghero (3.1.0)
activerecord (>= 6)
pkg-config (1.5.1)
Expand Down
8 changes: 7 additions & 1 deletion app/chewy/statuses_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ class StatusesIndex < Chewy::Index
include FormattingHelper

settings index: { refresh_interval: '30s' }, analysis: {
tokenizer: {
nori_mixed: {
type: 'nori_tokenizer',
decompound_mode: 'mixed',
},
},
filter: {
english_stop: {
type: 'stop',
Expand All @@ -20,7 +26,7 @@ class StatusesIndex < Chewy::Index
},
analyzer: {
content: {
tokenizer: 'uax_url_email',
tokenizer: 'nori_mixed',
filter: %w(
english_possessive_stemmer
lowercase
Expand Down
3 changes: 3 additions & 0 deletions app/javascript/styles/bigemoji.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import 'bigemoji/variables';
@import 'application';
@import 'bigemoji/diff';
58 changes: 58 additions & 0 deletions app/javascript/styles/bigemoji/diff.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
$emoji-enlarge-time: 40ms;

// bigger emojis
.status__content,
.detailed-status .status__content,
.account__header__bio {
.emojione {
--emoji-size: 1.5em;
width: var(--emoji-size, 36px);
height: var(--emoji-size, 36px);
font-size: var(--emoji-size, 36px);
transition: transform $emoji-enlarge-time ease;

&:hover {
transform: scale(2);
}
}
}


// enlarge only (names)
.display-name,
.notification__display-name,
.account__header__tabs__name {
.emojione {
transition: transform $emoji-enlarge-time linear;
vertical-align: center;

&:hover {
transform: scale(2);
}
}

}


// don't crop enlarged emojis as possible
.status__info {
.status__display-name, .display-name {
overflow-x: hidden;
overflow-y: visible;
}
}


// special case: collapsed article
.status__content {
overflow: visible;
&.status__content--collapsed {
overflow-y: hidden; // poor man's solution
}
}


// visual modifications
.status__info {
align-items: flex-start; // align time info to top (visual satisfaction)
}
1 change: 1 addition & 0 deletions app/javascript/styles/bigemoji/variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// intentionally empty
5 changes: 5 additions & 0 deletions app/javascript/styles/twvariant-wide-extra.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import 'application';

.column {
width: 560px;
}
5 changes: 5 additions & 0 deletions app/javascript/styles/twvariant-wide.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import 'application';

.column {
width: 480px;
}
12 changes: 7 additions & 5 deletions app/models/email_domain_block.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
#
# Table name: email_domain_blocks
#
# id :bigint(8) not null, primary key
# domain :string default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# parent_id :bigint(8)
# id :bigint(8) not null, primary key
# domain :string default(""), not null
# created_at :datetime not null
# updated_at :datetime not null
# parent_id :bigint(8)
# ips :inet is an Array
# last_refresh_at :datetime
#

class EmailDomainBlock < ApplicationRecord
Expand Down
4 changes: 4 additions & 0 deletions app/services/activitypub/fetch_featured_collection_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,8 @@ def local_follower

@local_follower = @account.followers.local.without_suspended.first
end

def local_follower
@local_follower ||= @account.followers.local.without_suspended.first
end
end
31 changes: 31 additions & 0 deletions app/workers/scheduler/email_domain_block_refresh_scheduler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# frozen_string_literal: true

class Scheduler::EmailDomainBlockRefreshScheduler
include Sidekiq::Worker
include Redisable

sidekiq_options retry: 0

def perform
Resolv::DNS.open do |dns|
dns.timeouts = 5

EmailDomainBlock.find_each do |email_domain_block|
ips = begin
if ip?(email_domain_block.domain)
[email_domain_block.domain]
else
resources = dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::A).to_a + dns.getresources(email_domain_block.domain, Resolv::DNS::Resource::IN::AAAA).to_a
resources.map { |resource| resource.address.to_s }
end
end

email_domain_block.update(ips: ips, last_refresh_at: Time.now.utc)
end
end
end

def ip?(str)
str =~ Regexp.union([Resolv::IPv4::Regex, Resolv::IPv6::Regex])
end
end
5 changes: 5 additions & 0 deletions config/themes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
default: styles/application.scss
contrast: styles/contrast.scss
mastodon-light: styles/mastodon-light.scss

twvariant-wide: styles/twvariant-wide.scss
twvariant-wide-extra: styles/twvariant-wide-extra.scss

bigemoji: styles/bigemoji.scss
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.bigint "parent_id"
t.inet "ips", array: true
t.datetime "last_refresh_at"
t.index ["domain"], name: "index_email_domain_blocks_on_domain", unique: true
end

Expand Down Expand Up @@ -1322,5 +1324,4 @@
ORDER BY (sum(t0.rank)) DESC;
SQL
add_index "follow_recommendations", ["account_id"], name: "index_follow_recommendations_on_account_id", unique: true

end
4 changes: 2 additions & 2 deletions lib/mastodon/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def flags
end

def suffix
''
'+twvariant'
end

def to_a
Expand All @@ -33,7 +33,7 @@ def to_s
end

def repository
ENV.fetch('GITHUB_REPOSITORY', 'mastodon/mastodon')
ENV.fetch('GITHUB_REPOSITORY', 'twingyeo-kr/mastodon')
end

def source_base_url
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2616,9 +2616,9 @@ babel-plugin-macros@^2.6.1:
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
integrity sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==
dependencies:
"@babel/runtime" "^7.7.2"
cosmiconfig "^6.0.0"
resolve "^1.12.0"
"@babel/runtime" "^7.12.5"
cosmiconfig "^7.0.0"
resolve "^1.19.0"

babel-plugin-macros@^3.0.1:
version "3.1.0"
Expand Down Expand Up @@ -3551,16 +3551,16 @@ cosmiconfig@^5.0.0:
js-yaml "^3.13.1"
parse-json "^4.0.0"

cosmiconfig@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==
cosmiconfig@^7.0.0:
version "7.0.1"
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d"
integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==
dependencies:
"@types/parse-json" "^4.0.0"
import-fresh "^3.1.0"
import-fresh "^3.2.1"
parse-json "^5.0.0"
path-type "^4.0.0"
yaml "^1.7.2"
yaml "^1.10.0"

cosmiconfig@^7.0.0, cosmiconfig@^7.1.0:
version "7.1.0"
Expand Down