Browse Source

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
closed-social-glitch-2
Jeremy Kescher 2 years ago
committed by GitHub
parent
commit
ec83e2a35e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/application/_sidebar.html.haml

+ 1
- 1
app/views/application/_sidebar.html.haml 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

Loading…
Cancel
Save