Update dependencies 🚀

This commit is contained in:
syuilo
2019-07-02 19:20:34 +09:00
parent 5f0ac0f46a
commit 10677b57d4
4 changed files with 57 additions and 55 deletions

View File

@ -21,6 +21,7 @@
import Vue from 'vue';
import i18n from '../../../i18n';
import VueCropper from 'vue-cropperjs';
import 'cropperjs/dist/cropper.css';
import * as url from '../../../../../prelude/url';
export default Vue.extend({

View File

@ -1,5 +1,5 @@
import * as fs from 'fs';
import fileType from 'file-type';
import fileType = require('file-type');
import checkSvg from '../misc/check-svg';
export async function detectMine(path: string) {

View File

@ -6,7 +6,7 @@ import { In } from 'typeorm';
import { ensure } from '../../prelude/ensure';
export default async function(user: User) {
const author: Author = {
const author = {
link: `${config.url}/@${user.username}`,
name: user.name || user.username
};
@ -30,13 +30,14 @@ export default async function(user: User) {
generator: 'Misskey',
description: `${user.notesCount} Notes, ${user.followingCount} Following, ${user.followersCount} Followers${profile.description ? ` · ${profile.description}` : ''}`,
link: author.link,
image: user.avatarUrl,
image: user.avatarUrl ? user.avatarUrl : undefined,
feedLinks: {
json: `${author.link}.json`,
atom: `${author.link}.atom`,
},
author
} as FeedOptions);
author,
copyright: user.name || user.username
});
for (const note of notes) {
const files = note.fileIds.length > 0 ? await DriveFiles.find({