瀏覽代碼

Fix featured hashtag URL being interpreted as media or with_replies (#12048)

Fix #12034
master^2
Eugen Rochko 4 年之前
committed by GitHub
父節點
當前提交
fa7dd5c2cd
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      app/controllers/accounts_controller.rb

+ 2
- 2
app/controllers/accounts_controller.rb 查看文件

@@ -129,11 +129,11 @@ class AccountsController < ApplicationController
end

def media_requested?
request.path.ends_with?('/media')
request.path.ends_with?('/media') && !tag_requested?
end

def replies_requested?
request.path.ends_with?('/with_replies')
request.path.ends_with?('/with_replies') && !tag_requested?
end

def tag_requested?


Loading…
取消
儲存