fix for global activity

This commit is contained in:
Kyle Drake 2023-05-21 10:19:03 -05:00
parent 10a6e1634f
commit 2bd0d8d35b

View file

@ -10,8 +10,9 @@
<script src="/js/news/event.js"></script>
<script src="/js/news/site.js"></script>
<% follow_events = site.newest_follows %>
<% unless follow_events.empty? %>
<% if defined?(site) %>
<% follow_events = site.newest_follows %>
<% unless follow_events.empty? %>
<div class="news-item follow">
<div class="icon"><a href="/site/<%= site.username %>" title="<%= site.username %>" class="avatar" style="background-image: url(<%= site.screenshot_url 'index.html', '50x50' %>);"></a></div>
@ -25,6 +26,7 @@
<% end %>
</div>
</div>
<% end %>
<% end %>
<% events.each do |event| %>