Compare commits

..

No commits in common. "696a6d53b66f74168b2e27badecdb8ec9836cf2e" and "6cca9a1d9599e9f4d8309d6e2fd31dd2e50c1f4f" have entirely different histories.

5 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
const { getClient } = require('../matrix-bot');
const { matrixUserToAuthorAddress } = require('../util/db');
const write = require('../util/forum/write');
const write = require('./write');
const { dao } = require('../util/contracts');
const {

View File

@ -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('../util/forum/write');
const write = require('./write');
// Each post allocates 30% of its reputation to citations
const PPM_TO_CITATIONS = 300000;

View File

@ -2,8 +2,8 @@ const express = require('express');
require('express-async-errors');
const read = require('../util/forum/read');
const write = require('../util/forum/write');
const read = require('./read');
const write = require('./write');
const importFromSS = require('./import-from-ss');
const importFromMatrix = require('./import-from-matrix');

View File

@ -1,7 +1,7 @@
const objectHash = require('object-hash');
const verifySignature = require('../verify-signature');
const { forum } = require('../db');
const verifySignature = require('../util/verify-signature');
const { forum } = require('../util/db');
const read = async (hash) => {
// Fetch content

View File

@ -1,7 +1,7 @@
const objectHash = require('object-hash');
const verifySignature = require('../verify-signature');
const { forum } = require('../db');
const verifySignature = require('../util/verify-signature');
const { forum } = require('../util/db');
const write = async ({
authors, content, citations, embeddedData, signature,