Cache meta
This commit is contained in:
parent
8a55bdd89d
commit
5aa5896b22
34 changed files with 62 additions and 55 deletions
|
|
@ -9,7 +9,7 @@ import * as sharp from 'sharp';
|
|||
import { publishMainStream, publishDriveStream } from '../stream';
|
||||
import delFile from './delete-file';
|
||||
import config from '../../config';
|
||||
import fetchMeta from '../../misc/fetch-meta';
|
||||
import { fetchMeta } from '../../misc/fetch-meta';
|
||||
import { GenerateVideoThumbnail } from './generate-video-thumbnail';
|
||||
import { driveLogger } from './logger';
|
||||
import { IImage, ConvertToJpeg, ConvertToWebp, ConvertToPng } from './image-processor';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { deliver } from '../../../queue';
|
|||
import { renderActivity } from '../../../remote/activitypub/renderer';
|
||||
import { IdentifiableError } from '../../../misc/identifiable-error';
|
||||
import { toDbReaction } from '../../../misc/reaction-lib';
|
||||
import fetchMeta from '../../../misc/fetch-meta';
|
||||
import { fetchMeta } from '../../../misc/fetch-meta';
|
||||
import { User } from '../../../models/entities/user';
|
||||
import { Note } from '../../../models/entities/note';
|
||||
import { NoteReactions, Users, NoteWatchings, Notes, UserProfiles } from '../../../models';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as push from 'web-push';
|
||||
import config from '../config';
|
||||
import { SwSubscriptions } from '../models';
|
||||
import fetchMeta from '../misc/fetch-meta';
|
||||
import { fetchMeta } from '../misc/fetch-meta';
|
||||
|
||||
export default async function(userId: string, type: string, body?: any) {
|
||||
const meta = await fetchMeta();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue