Browse Source

Historical porposal links in posts

Leszek Wiesner 4 years ago
parent
commit
61c341b156
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pioneer/packages/joy-utils/src/transport/proposals.ts

+ 2 - 1
pioneer/packages/joy-utils/src/transport/proposals.ts

@@ -361,7 +361,8 @@ export default class ProposalsTransport extends BaseTransport {
         createdAt: new Date(post.createdAt),
         updatedAt: new Date(post.updatedAt),
         author: this.api.createType('Membership', post.author),
-        authorId: this.api.createType('MemberId', post.authorId)
+        authorId: this.api.createType('MemberId', post.authorId),
+        text: this.replaceHistoricalProposalLinks(post.text)
       }))
     };
   }