Преглед на файлове

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

Fix #12034
master^2
Eugen Rochko преди 4 години
committed by GitHub
родител
ревизия
fa7dd5c2cd
No known key found for this signature in database 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?


Зареждане…
Отказ
Запис