소스 검색

Fix punycode being rendered instead of unicode in some places (#13030)

master^2
Eugen Rochko 4 년 전
committed by GitHub
부모
커밋
c253f5c57e
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      app/helpers/accounts_helper.rb
  2. +1
    -1
      app/views/accounts/_og.html.haml
  3. +1
    -1
      app/views/accounts/show.html.haml
  4. +1
    -1
      app/views/statuses/show.html.haml

+ 1
- 1
app/helpers/accounts_helper.rb 파일 보기

@@ -11,7 +11,7 @@ module AccountsHelper

def acct(account)
if account.local?
"@#{account.acct}@#{Rails.configuration.x.local_domain}"
"@#{account.acct}@#{site_hostname}"
else
"@#{account.pretty_acct}"
end


+ 1
- 1
app/views/accounts/_og.html.haml 파일 보기

@@ -10,4 +10,4 @@
= opengraph 'og:image:width', '120'
= opengraph 'og:image:height', '120'
= opengraph 'twitter:card', 'summary'
= opengraph 'profile:username', account.local_username_and_domain
= opengraph 'profile:username', acct(account)[1..-1]

+ 1
- 1
app/views/accounts/show.html.haml 파일 보기

@@ -1,5 +1,5 @@
- content_for :page_title do
= "#{display_name(@account)} (@#{@account.local_username_and_domain})"
= "#{display_name(@account)} (#{acct(@account)})"

- content_for :header_tags do
- if @account.user&.setting_noindex


+ 1
- 1
app/views/statuses/show.html.haml 파일 보기

@@ -10,7 +10,7 @@

= opengraph 'og:site_name', site_title
= opengraph 'og:type', 'article'
= opengraph 'og:title', "#{display_name(@account)} (@#{@account.local_username_and_domain})"
= opengraph 'og:title', "#{display_name(@account)} (#{acct(@account)})"
= opengraph 'og:url', short_account_status_url(@account, @status)

= render 'og_description', activity: @status


불러오는 중...
취소
저장