Add FetchNote method to ActivityPubService
This commit is contained in:
parent
8dc044d428
commit
6351afb39c
1 changed files with 5 additions and 0 deletions
|
@ -28,4 +28,9 @@ public class ActivityPubService(HttpClient client, HttpRequestService httpRqSvc)
|
|||
var activity = await FetchActivity(uri);
|
||||
return activity.OfType<ASActor>().FirstOrDefault() ?? throw new Exception("Failed to fetch actor");
|
||||
}
|
||||
|
||||
public async Task<ASNote> FetchNote(string uri) {
|
||||
var activity = await FetchActivity(uri);
|
||||
return activity.OfType<ASNote>().FirstOrDefault() ?? throw new Exception("Failed to fetch note");
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue