<commit_before>.hero-widget
  .hero-widget__img
    = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.png'), alt: @instance_presenter.site_title

  .hero-widget__text
    %p= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')

- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
  - trends = Trends.tags.query.allowed.limit(3)

  - unless trends.empty?
    .endorsements-widget.trends-widget
      %h4.emojify= t('footer.trending_now')

      - trends.each do |tag|
        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer).as_json
<commit_msg>Fix missing scope for current_user in _sidebar.html.haml (#18822)<commit_after>.hero-widget
  .hero-widget__img
    = image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.png'), alt: @instance_presenter.site_title

  .hero-widget__text
    %p= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')

- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
  - trends = Trends.tags.query.allowed.limit(3)

  - unless trends.empty?
    .endorsements-widget.trends-widget
      %h4.emojify= t('footer.trending_now')

      - trends.each do |tag|
        = react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer, scope: current_user, scope_name: :current_user).as_json

{'fraction_non_alphanumeric': 0.13202933985330073, 'fraction_numerical': 0.005501222493887531, 'mean_word_length': 5.062962962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1069843', 'n_tokens_mistral': 574, 'n_tokens_neox': 550, 'n_words': 75}