Procházet zdrojové kódy

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

Fix #12034
master^2
Eugen Rochko před 4 roky
committed by GitHub
rodič
revize
fa7dd5c2cd
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      app/controllers/accounts_controller.rb

+ 2
- 2
app/controllers/accounts_controller.rb Zobrazit soubor

@@ -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?


Načítá se…
Zrušit
Uložit