👔 Stop rendering post attachments in article post on hosted pages

This commit is contained in:
2025-11-22 18:24:32 +08:00
parent fd6e9c9780
commit 2317033dae
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)