isabelle #2

Merged
nachbaisabel merged 18 commits from isabelle into main 2026-06-01 22:24:18 +02:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 7c724c00a9 - Show all commits

View File

@ -44,7 +44,8 @@ namespace OnlyPrompt.Backend.Controllers
)
{
var userId = User.GetUserId();
var query = _db.Prompts.AsQueryable();
var query = _db.Prompts
.Where(x => x.CreatorId != userId);
if (category.HasValue)
query = query.Where(x => category.Value.Id.HasValue ? x.CategoryId == category.Value.Id.Value : x.Category.Slug == category.Value.Slug);

View File

@ -450,6 +450,7 @@
<span style="margin-left:auto;font-size:0.75rem;color:#94a3b8;">${timeAgo(p.timeStamp)}</span>
</div>
<h3 class="prompt-title">${p.title}</h3>
<p class="prompt-description">${p.description || 'No description yet.'}</p>
<div style="margin-bottom:12px;">${renderStars(p.averageRating)}</div>
<div class="prompt-price">${promptPrice(p)}</div>
<div class="prompt-actions">