]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing scope for current_user in _sidebar.html.haml (#18822)
authorJeremy Kescher <jeremy@kescher.at>
Mon, 18 Jul 2022 06:41:50 +0000 (06:41 +0000)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:55 +0000 (00:27 -0400)
Fixes https://github.com/mastodon/mastodon/issues/18821

Fix suggested by https://miaow.gay/@meganeko/108665430982072358

app/views/application/_sidebar.html.haml

index 0a952add0775dbb3a972f104f8129e87ae98461c..cc157bf479300b079310081c87b51613fe3da1a7 100644 (file)
@@ -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