Add ability to follow hashtags (#18809)

This commit is contained in:
Eugen Rochko
2022-07-17 13:49:29 +02:00
committed by GitHub
parent ecb3bb3256
commit c3f0621a59
18 changed files with 329 additions and 20 deletions

View File

@ -530,6 +530,15 @@ Rails.application.routes.draw do
resource :note, only: :create, controller: 'accounts/notes'
end
resources :tags, only: [:show], constraints: { id: /#{Tag::HASHTAG_NAME_RE}/ } do
member do
post :follow
post :unfollow
end
end
resources :followed_tags, only: [:index]
resources :lists, only: [:index, :create, :show, :update, :destroy] do
resource :accounts, only: [:show, :create, :destroy], controller: 'lists/accounts'
end