Update create.ts

This commit is contained in:
Acid Chicken (硫酸鶏) 2020-02-02 01:18:53 +09:00 committed by GitHub
parent 9483bbb386
commit 3e7b342cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,7 +238,9 @@ export default async (user: IUser, data: Option, silent = false) => new Promise<
}
// ハッシュタグ更新
for (const tag of tags) updateHashtag(user, tag);
if (data.visibility == 'public' || data.visibility == 'home') {
for (const tag of tags) updateHashtag(user, tag);
}
// ファイルが添付されていた場合ドライブのファイルの「このファイルが添付された投稿一覧」プロパティにこの投稿を追加
if (data.files) {