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