]> cat aescling's git repositories - mastodon.git/commit
Fix follow/unfollow buttons on public profile (fixes #7036) (#7040)
authorThibG <thib@sitedethib.com>
Sun, 8 Apr 2018 11:40:22 +0000 (13:40 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 8 Apr 2018 11:40:22 +0000 (13:40 +0200)
commit1364e9e4ae1fb12a1c970795f1d0afd651c7cfe2
tree0c835286de94b4a1dc8a5ba973c80922d226a9ee
parent1ed1014546bcfef0d2441702673deab586f6bca0
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
app/controllers/concerns/remote_account_controller_concern.rb [new file with mode: 0644]
app/controllers/remote_unfollows.rb [new file with mode: 0644]
app/views/accounts/_follow_button.html.haml
app/views/accounts/_follow_grid.html.haml
app/views/remote_unfollows/_card.html.haml [new file with mode: 0644]
app/views/remote_unfollows/_post_follow_actions.html.haml [new file with mode: 0644]
app/views/remote_unfollows/error.html.haml [new file with mode: 0644]
app/views/remote_unfollows/success.html.haml [new file with mode: 0644]
config/routes.rb