[backend/masto-client] Stub featured_tags endpoint (ISH-263)

This commit is contained in:
Laura Hausmann 2024-04-16 18:30:04 +02:00
parent 933361b0c6
commit 672bf57f19
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -434,6 +434,20 @@ public class AccountController(
return Ok(res);
}
[HttpGet("{id}/featured_tags")]
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(IEnumerable<object>))]
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(MastodonErrorResponse))]
public async Task<IActionResult> GetUserFeaturedTags(string id)
{
_ = await db.Users
.Include(p => p.UserProfile)
.FirstOrDefaultAsync(p => p.Id == id) ??
throw GracefulException.RecordNotFound();
var res = Array.Empty<object>();
return Ok(res);
}
[HttpGet("/api/v1/follow_requests")]
[Authorize("read:follows")]
[LinkPagination(40, 80)]