Removed post.user variable.
This commit is contained in:
@@ -60,7 +60,6 @@ function interpolate(pattern, item = null, content = null, host = null, post = n
|
||||
id: post.id,
|
||||
title: post.title && post.title.slice(0, config.library.titleLength),
|
||||
url: post.url,
|
||||
user: post.user,
|
||||
date: dateFns.format(post.datetime, dateFormat),
|
||||
index: post.index + config.library.indexOffset,
|
||||
hash: post.hash,
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
'use strict';
|
||||
'use strict';
|
||||
|
||||
const util = require('util');
|
||||
const config = require('config');
|
||||
const fetch = require('node-fetch');
|
||||
function self(host, post) {
|
||||
console.log(post);
|
||||
|
||||
function self(post) {
|
||||
return Promise.resolve({
|
||||
return {
|
||||
album: null,
|
||||
items: [{
|
||||
id: post.id,
|
||||
@@ -15,9 +13,9 @@ function self(post) {
|
||||
datetime: post.datetime,
|
||||
type: 'text/plain',
|
||||
self: true,
|
||||
original: post
|
||||
original: post,
|
||||
}]
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = self;
|
||||
|
||||
Reference in New Issue
Block a user