Expected behavior
Posts should show related posts, even if they're pinned.
Screenshots
Self-explanatory
Logs
N/A
Environment:
N/A
Additional context
As discussed here, there is a check in the code to hide the "Related Posts" section in the UI, if the item.position value is truthy. This was added to hide "Related Posts" from the Saloon daily posts. However, it has the unintended side effect of hiding "Related Posts" from all pinned posts.
We should be able to change this AND condition to (!item.position && !item.subName) (note the parenthesis) here.
Description Posts that are pinned to a territory don't show "Related Posts" in the full item UI.
Steps to Reproduce
Expected behavior Posts should show related posts, even if they're pinned.
Screenshots Self-explanatory
Logs N/A
Environment: N/A
Additional context As discussed here, there is a check in the code to hide the "Related Posts" section in the UI, if the
item.position
value is truthy. This was added to hide "Related Posts" from the Saloon daily posts. However, it has the unintended side effect of hiding "Related Posts" from all pinned posts.We should be able to change this AND condition to
(!item.position && !item.subName)
(note the parenthesis) here.