Compare commits

..

2 Commits

Author SHA1 Message Date
Ladd Hoffman d568c08cce minor refactor
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 32s Details
2024-04-27 19:19:53 -05:00
Ladd Hoffman 6cca9a1d95 Merge pull request 'remove unneeded comments' (#9) from Virtual-branch into main
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 25s Details
Reviewed-on: #9
2024-04-27 18:55:25 -05:00
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('./write');
const write = require('../util/forum/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('./write');
const write = require('../util/forum/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('./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');

View File

@ -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

View File

@ -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,