mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
Update author resolving to new API response
http-api has been updated to return a new type of Author e.g.
```json
"author": {
"peer": "hyyg555wwkkutaysg6yr67qnu5d5ji54iur3n5uzzszndh8dp7ofue",
"identity": {
"urn": "rad:git:hnrk81wcokr48mkm544kh74kc9fqz84d3rfcy",
"name": "sebastinez",
"ens": {
"name": "sebastinez.radicle.eth"
}
}
}
```
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+8
-4
@@ -1,4 +1,5 @@
|
||||
import { type Host, Request } from '@app/api';
|
||||
import type { PeerId } from '@app/project';
|
||||
|
||||
export interface IIssue {
|
||||
id: string;
|
||||
@@ -26,10 +27,13 @@ export interface Comment {
|
||||
}
|
||||
|
||||
export interface Author {
|
||||
urn: string;
|
||||
name?: string;
|
||||
ens?: {
|
||||
name: string;
|
||||
peer: PeerId;
|
||||
identity: {
|
||||
urn: string;
|
||||
name?: string;
|
||||
ens?: {
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user