mirror of
https://github.com/neocities/neocities.git
synced 2025-07-03 01:23:22 +02:00
catch mystery missing profile comment and skip
This commit is contained in:
parent
375cffb6fd
commit
c43b68005a
1 changed files with 22 additions and 20 deletions
|
@ -1,7 +1,8 @@
|
|||
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||
<% if profile_comment %>
|
||||
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||
|
||||
<div class="title">
|
||||
<div class="title">
|
||||
<div class="icon"><a href="/site/<%= actioning_site.username %>" class="avatar" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '50x50') %>);"></a></div>
|
||||
|
||||
<div class="text">
|
||||
|
@ -20,5 +21,6 @@
|
|||
<span class="date">
|
||||
<a href="/site/<%= site.username %>?event_id=<%= profile_comment.event.id %>" class="local-date-title" data-timestamp="<%= profile_comment.created_at.to_i %>"><%= profile_comment.created_at.ago %></a>
|
||||
</span>
|
||||
</div>
|
||||
<div class="content"><%== sanitize_comment profile_comment.message %></div>
|
||||
</div>
|
||||
<div class="content"><%== sanitize_comment profile_comment.message %></div>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue