about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeremy Kescher <jeremy@kescher.at>2022-07-18 06:41:50 +0000
committerGitHub <noreply@github.com>2022-07-18 08:41:50 +0200
commitec83e2a35ee5f3a68ec0f8f5285e45d24d4d1da6 (patch)
tree7de24555ce5c2911ef58dbaf7de40265b3025eca
parentad489f865a38e54a0f05598fa3f0638d3808214d (diff)
Fix missing scope for current_user in _sidebar.html.haml (#18822)
Fixes https://github.com/mastodon/mastodon/issues/18821

Fix suggested by https://miaow.gay/@meganeko/108665430982072358
-rw-r--r--app/views/application/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/application/_sidebar.html.haml b/app/views/application/_sidebar.html.haml
index 0a952add0..cc157bf47 100644
--- a/app/views/application/_sidebar.html.haml
+++ b/app/views/application/_sidebar.html.haml
@@ -13,4 +13,4 @@
       %h4.emojify= t('footer.trending_now')
 
       - trends.each do |tag|
-        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer).as_json
+        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer, scope: current_user, scope_name: :current_user).as_json