patch missing screenshot thumbnails for followers

This commit is contained in:
Kyle Drake 2019-10-30 13:43:23 -07:00
parent 16673f0111
commit 72ac64802e
2 changed files with 1 additions and 1 deletions

BIN
public/img/50x50.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

View file

@ -21,7 +21,7 @@
<% else %> <% else %>
<% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %> <% site.follows_dataset.select(:actioning_site_id).all.each do |follow| %>
<% follow_actioning_site = follow.actioning_site_dataset.select(:username).first %> <% follow_actioning_site = follow.actioning_site_dataset.select(:username).first %>
<a href="/site/<%= follow_actioning_site.username %>" title="<%= follow_actioning_site.title %>"><img src="<%= follow_actioning_site.screenshot_url 'index.html', '50x50' %>" class="avatar"></a> <a href="/site/<%= follow_actioning_site.username %>" title="<%= follow_actioning_site.title %>"><img src="<%= follow_actioning_site.screenshot_url 'index.html', '50x50' %>" class="avatar" onerror="this.src='/img/50x50.png'"></a>
<% end %> <% end %>
<% end %> <% end %>
</div> </div>