Fix missing scope for current_user in _sidebar.html.haml

Fix suggested by https://miaow.gay/@meganeko/108665430982072358
This commit is contained in:
Jeremy Kescher 2022-07-18 06:50:09 +02:00
parent 92268f5da7
commit 2cd46ac82e
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

View 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