fix: simplify email template to use direct inverse relationship

This commit is contained in:
Nicholas Riegel 2026-05-30 00:07:24 -04:00
parent c68fd9c86e
commit 3fcbe7cddb

View file

@ -19,9 +19,8 @@
<h3>Social Media Posts — Ready to Post</h3> <h3>Social Media Posts — Ready to Post</h3>
% set social_records = object.blog_post_id.itsulu_social_id % if object.blog_post_id.itsulu_social_id:
% if social_records: % set social = object.blog_post_id.itsulu_social_id[0]
% set social = social_records[0]
% if social.twitter_post_a: % if social.twitter_post_a:
<h4>Twitter Post A</h4> <h4>Twitter Post A</h4>