Fix follow/unfollow buttons on public profile (fixes #7036) (#7040)
* Fix follow/unfollow buttons on public profile - Present non-logged users with web+mastodon:// URLs for remote accounts - Present logged-in users with appropriate links (authorize_follows and remote_unfollows) for remote accounts * Do not cache rendered cards if user is logged in
Showing
- app/controllers/concerns/remote_account_controller_concern.rb 21 additions, 0 deletions...controllers/concerns/remote_account_controller_concern.rb
- app/controllers/remote_unfollows.rb 39 additions, 0 deletionsapp/controllers/remote_unfollows.rb
- app/views/accounts/_follow_button.html.haml 3 additions, 3 deletionsapp/views/accounts/_follow_button.html.haml
- app/views/accounts/_follow_grid.html.haml 1 addition, 1 deletionapp/views/accounts/_follow_grid.html.haml
- app/views/remote_unfollows/_card.html.haml 13 additions, 0 deletionsapp/views/remote_unfollows/_card.html.haml
- app/views/remote_unfollows/_post_follow_actions.html.haml 4 additions, 0 deletionsapp/views/remote_unfollows/_post_follow_actions.html.haml
- app/views/remote_unfollows/error.html.haml 3 additions, 0 deletionsapp/views/remote_unfollows/error.html.haml
- app/views/remote_unfollows/success.html.haml 10 additions, 0 deletionsapp/views/remote_unfollows/success.html.haml
- config/routes.rb 1 addition, 0 deletionsconfig/routes.rb
app/controllers/remote_unfollows.rb
0 → 100644
app/views/remote_unfollows/_card.html.haml
0 → 100644
app/views/remote_unfollows/error.html.haml
0 → 100644
app/views/remote_unfollows/success.html.haml
0 → 100644
Please register or sign in to comment