Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use author from `Revision` as it might differ from original one
xphoniex committed 2 years ago
commit da361fb39963bc16aaa0ca5077b157b4a7f09df8
parent a916783d6f23c672f6b59d095b9190f2c72a2672
2 files changed +4 -2
modified httpd-client/lib/project/patch.ts
@@ -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(),
modified src/views/projects/Cob/Revision.svelte
@@ -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} />