👔 Stop rendering post attachments in article post on hosted pages
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
@page "/p/{slug}"
|
@page "/p/{slug}"
|
||||||
|
@using DysonNetwork.Shared.Models
|
||||||
@using NodaTime
|
@using NodaTime
|
||||||
@model DysonNetwork.Zone.Pages.Posts.DetailsModel
|
@model DysonNetwork.Zone.Pages.Posts.DetailsModel
|
||||||
@{
|
@{
|
||||||
@@ -109,7 +110,7 @@
|
|||||||
@Html.Raw(Model.Post.Content)
|
@Html.Raw(Model.Post.Content)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (Model.Post.Attachments.Any())
|
@if (Model.Post.Attachments.Any() && Model.Post.Type != PostType.Article)
|
||||||
{
|
{
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
@foreach (var attachment in Model.Post.Attachments)
|
@foreach (var attachment in Model.Post.Attachments)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<p>@Html.Raw(Model.Content)</p>
|
<p>@Html.Raw(Model.Content)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if (Model.Attachments.Any())
|
@if (Model.Attachments.Any() && Model.Type != PostType.Article)
|
||||||
{
|
{
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
@foreach (var attachment in Model.Attachments)
|
@foreach (var attachment in Model.Attachments)
|
||||||
|
|||||||
Reference in New Issue
Block a user