Compare commits
2 Commits
6cca9a1d95
...
696a6d53b6
Author | SHA1 | Date |
---|---|---|
Ladd Hoffman | 696a6d53b6 | |
Ladd Hoffman | d568c08cce |
|
@ -1,7 +1,7 @@
|
|||
const { getClient } = require('../matrix-bot');
|
||||
|
||||
const { matrixUserToAuthorAddress } = require('../util/db');
|
||||
const write = require('./write');
|
||||
const write = require('../util/forum/write');
|
||||
const { dao } = require('../util/contracts');
|
||||
|
||||
const {
|
||||
|
|
|
@ -6,7 +6,7 @@ const Promise = require('bluebird');
|
|||
const objectHash = require('object-hash');
|
||||
const { authorAddresses, authorPrivKeys } = require('../util/db');
|
||||
const { dao } = require('../util/contracts');
|
||||
const write = require('./write');
|
||||
const write = require('../util/forum/write');
|
||||
|
||||
// Each post allocates 30% of its reputation to citations
|
||||
const PPM_TO_CITATIONS = 300000;
|
||||
|
|
|
@ -2,8 +2,8 @@ const express = require('express');
|
|||
|
||||
require('express-async-errors');
|
||||
|
||||
const read = require('./read');
|
||||
const write = require('./write');
|
||||
const read = require('../util/forum/read');
|
||||
const write = require('../util/forum/write');
|
||||
const importFromSS = require('./import-from-ss');
|
||||
const importFromMatrix = require('./import-from-matrix');
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const objectHash = require('object-hash');
|
||||
|
||||
const verifySignature = require('../util/verify-signature');
|
||||
const { forum } = require('../util/db');
|
||||
const verifySignature = require('../verify-signature');
|
||||
const { forum } = require('../db');
|
||||
|
||||
const read = async (hash) => {
|
||||
// Fetch content
|
|
@ -1,7 +1,7 @@
|
|||
const objectHash = require('object-hash');
|
||||
|
||||
const verifySignature = require('../util/verify-signature');
|
||||
const { forum } = require('../util/db');
|
||||
const verifySignature = require('../verify-signature');
|
||||
const { forum } = require('../db');
|
||||
|
||||
const write = async ({
|
||||
authors, content, citations, embeddedData, signature,
|
Loading…
Reference in New Issue