mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-31 09:10:44 +08:00
Use author from Revision as it might differ from original one
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -102,6 +102,7 @@ const reviewSchema = strictObject({
|
||||
|
||||
export interface Revision {
|
||||
id: string;
|
||||
author: { id: string; alias?: string };
|
||||
description: string;
|
||||
base: string;
|
||||
oid: string;
|
||||
@@ -113,6 +114,7 @@ export interface Revision {
|
||||
|
||||
const revisionSchema = strictObject({
|
||||
id: string(),
|
||||
author: strictObject({ id: string(), alias: string().optional() }),
|
||||
description: string(),
|
||||
base: string(),
|
||||
oid: string(),
|
||||
|
||||
@@ -239,8 +239,8 @@
|
||||
<div class="action-background">
|
||||
<CommentComponent
|
||||
{caption}
|
||||
{authorId}
|
||||
{authorAlias}
|
||||
authorId={element.inner.author.id}
|
||||
authorAlias={element.inner.author.alias}
|
||||
timestamp={element.timestamp}
|
||||
rawPath={utils.getRawBasePath(projectId, baseUrl, projectHead)}
|
||||
body={element.inner.description} />
|
||||
|
||||
Reference in New Issue
Block a user