[backend/razor] Add placeholder hashtag public preview

This commit is contained in:
Laura Hausmann 2024-09-16 01:08:17 +02:00
parent f3488fdca3
commit ac4add63bb
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,5 @@
@page "/tags/{tag}"
@model TagModel
<h3>Notes with #@Model.Tag</h3>
<i>You've arrived on a placeholder page - this instance doesn't support public preview of hashtags just yet.</i>

View file

@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace Iceshrimp.Backend.Pages;
public class TagModel : PageModel
{
public string Tag = null!;
public void OnGet(string tag)
{
Tag = tag;
}
}