[backend/api] Rename fetch-raw controller method

This commit is contained in:
Laura Hausmann 2024-04-30 16:41:45 +02:00
parent d31860dbb3
commit 9f356b8139
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -129,7 +129,7 @@ public class AdminController(
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(ASObject))] [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(ASObject))]
[ProducesResponseType(StatusCodes.Status422UnprocessableEntity, Type = typeof(ErrorResponse))] [ProducesResponseType(StatusCodes.Status422UnprocessableEntity, Type = typeof(ErrorResponse))]
[Produces("application/activity+json", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")] [Produces("application/activity+json", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")]
public async Task FetchRawActivityByUsername([FromQuery] string uri) public async Task FetchRawActivityAsync([FromQuery] string uri)
{ {
var activity = await fetchSvc.FetchRawActivityAsync(uri); var activity = await fetchSvc.FetchRawActivityAsync(uri);
if (activity == null) throw GracefulException.UnprocessableEntity("Failed to fetch activity"); if (activity == null) throw GracefulException.UnprocessableEntity("Failed to fetch activity");