🐛 Fix post-reply will still create normal activities

🐛 Fix publisher get by name endpoint requires authorization
This commit is contained in:
2025-05-25 12:12:37 +08:00
parent 185ab13ec9
commit 68399dd371
2 changed files with 5 additions and 4 deletions

View File

@ -19,8 +19,6 @@ public class PublisherController(AppDatabase db, PublisherService ps, FileServic
[HttpGet("{name}")]
public async Task<ActionResult<Publisher>> GetPublisher(string name)
{
if (HttpContext.Items["CurrentUser"] is not Account.Account currentUser) return Unauthorized();
var publisher = await db.Publishers
.Where(e => e.Name == name)
.FirstOrDefaultAsync();