Merge branch 'develop'

This commit is contained in:
syuilo 2019-04-15 13:14:58 +09:00
commit a05f5a91b8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
6 changed files with 21 additions and 1 deletions

View file

@ -5,8 +5,17 @@ If you encounter any problems with updating, please try the following:
1. `npm run clean` or `npm run cleanall`
2. Retry update (Don't forget `npm i`)
11.0.3 (2019/04/15)
-------------------
### Fixes
* ハッシュタグ検索APIが動作しない問題を修正
* モデレーターなのにアカウントメニューに「管理」が表示されない問題を修正
* プッシュ通知の購読に失敗する問題を修正
* ユーザー取得APIでユーザーを指定しない場合エラーになる問題を修正
11.0.2 (2019/04/15)
-------------------
### Fixes
* アプリが作成できない問題を修正
* 「ハイライト」が表示されない問題を修正
* リモートの投稿に添付されている画像が小さい問題を修正
@ -15,15 +24,19 @@ If you encounter any problems with updating, please try the following:
11.0.1 (2019/04/15)
-------------------
### Improvements
* 不要な依存関係を削除
11.0.0 daybreak (2019/04/14)
----------------------------
### Improvements
* **データベースがMongoDBからPostgreSQLに変更されました**
* **Redisが必須に**
* アカウントを完全に削除できるように
* 投稿フォームで添付ファイルの閲覧注意を確認/設定できるように
* ミュート/ブロック時にそのユーザーの投稿のウォッチをすべて解除するように
### Fixes
* フォロー申請数が実際より1すくなくなる問題を修正
* リストからアカウント削除したユーザーを削除できない問題を修正
* リストTLでフォローしていないユーザーの非公開投稿が流れる問題を修正

View file

@ -1,7 +1,7 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "11.0.2",
"version": "11.0.3",
"codename": "daybreak",
"repository": {
"type": "git",

View file

@ -122,6 +122,7 @@ export class UserRepository extends Repository<User> {
bannerUrl: user.bannerUrl,
bannerColor: user.bannerColor,
isLocked: user.isLocked,
isModerator: user.isModerator || undefined,
description: profile!.description,
location: profile!.location,
birthday: profile!.birthday,

View file

@ -48,6 +48,7 @@ export default define(meta, async (ps) => {
const hashtags = await Hashtags.createQueryBuilder('tag')
.where('tag.name like :q', { q: ps.query.toLowerCase() + '%' })
.orderBy('tag.count', 'DESC')
.groupBy('tag.id')
.take(ps.limit!)
.skip(ps.offset)
.getMany();

View file

@ -27,6 +27,7 @@ export const meta = {
export default define(meta, async (ps, user) => {
// if already subscribed
const exist = await SwSubscriptions.findOne({
createdAt: new Date(),
userId: user.id,
endpoint: ps.endpoint,
auth: ps.auth,

View file

@ -65,6 +65,10 @@ export default define(meta, async (ps, me) => {
let user;
if (ps.userIds) {
if (ps.userIds.length === 0) {
return [];
}
const users = await Users.find({
id: In(ps.userIds)
});