[backend/masto-client] Stub featured_tags endpoint (ISH-263)
This commit is contained in:
parent
933361b0c6
commit
672bf57f19
1 changed files with 14 additions and 0 deletions
|
@ -434,6 +434,20 @@ public class AccountController(
|
||||||
return Ok(res);
|
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")]
|
[HttpGet("/api/v1/follow_requests")]
|
||||||
[Authorize("read:follows")]
|
[Authorize("read:follows")]
|
||||||
[LinkPagination(40, 80)]
|
[LinkPagination(40, 80)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue