mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-01 13:36:44 -06:00
Merge branch 'develop'
This commit is contained in:
commit
6e59798e82
9 changed files with 27 additions and 7 deletions
|
@ -62,6 +62,9 @@ db:
|
||||||
user: example-misskey-user
|
user: example-misskey-user
|
||||||
pass: example-misskey-pass
|
pass: example-misskey-pass
|
||||||
|
|
||||||
|
# Whether disable Caching queries
|
||||||
|
#disableCache: true
|
||||||
|
|
||||||
# Extra Connection options
|
# Extra Connection options
|
||||||
#extra:
|
#extra:
|
||||||
# ssl: true
|
# ssl: true
|
||||||
|
|
|
@ -17,6 +17,14 @@ npm i -g ts-node
|
||||||
npm run migrate
|
npm run migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
|
11.20.4 (2019/06/13)
|
||||||
|
--------------------
|
||||||
|
### 🐛Fixes
|
||||||
|
* 検索結果がループする問題を修正
|
||||||
|
* 設定でPostgreSQLのクエリー結果のキャッシュを無効できるように
|
||||||
|
* 「投稿内の動きのあるテキストを無効にする」だけ反応しない問題を修正
|
||||||
|
* 特定の操作のデータベースのパフォーマンス調整
|
||||||
|
|
||||||
11.20.3 (2019/06/10)
|
11.20.3 (2019/06/10)
|
||||||
--------------------
|
--------------------
|
||||||
### 🐛Fixes
|
### 🐛Fixes
|
||||||
|
|
|
@ -124,7 +124,6 @@ Please see the [Contribution Guide](./CONTRIBUTING.md).
|
||||||
<table><tr>
|
<table><tr>
|
||||||
<td><img src="https://c8.patreon.com/2/200/16869916" alt="見当かなみ" width="100"></td>
|
<td><img src="https://c8.patreon.com/2/200/16869916" alt="見当かなみ" width="100"></td>
|
||||||
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/18899730/6a22797f68254034a854d69ea2445fc8/1.png?token-time=2145916800&token-hash=b_uj57yxo5VzkSOUS7oXE_762dyOTB_oxzbO6lFNG3k%3D" alt="YuzuRyo61" width="100"></td>
|
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/18899730/6a22797f68254034a854d69ea2445fc8/1.png?token-time=2145916800&token-hash=b_uj57yxo5VzkSOUS7oXE_762dyOTB_oxzbO6lFNG3k%3D" alt="YuzuRyo61" width="100"></td>
|
||||||
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/12021162/963128bb8d14476dbd8407943db8f31a/1.png?token-time=2145916800&token-hash=FMV7cPKBD1TU2WTbl1jg6AcdKSvTb2BSFcDhgc-EO8w%3D" alt="gutfuckllc" width="100"></td>
|
|
||||||
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/11357794/923ce94cd8c44ba788ee931907881839/1.png?token-time=2145916800&token-hash=9nEQje_eMvUjq9a7L3uBqW-MQbS-rRMaMgd7UYVoFNM%3D" alt="mydarkstar" width="100"></td>
|
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/11357794/923ce94cd8c44ba788ee931907881839/1.png?token-time=2145916800&token-hash=9nEQje_eMvUjq9a7L3uBqW-MQbS-rRMaMgd7UYVoFNM%3D" alt="mydarkstar" width="100"></td>
|
||||||
<td><img src="https://c8.patreon.com/2/200/12718187" alt="Peter G." width="100"></td>
|
<td><img src="https://c8.patreon.com/2/200/12718187" alt="Peter G." width="100"></td>
|
||||||
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/13039004/509d0c412eb14ae08d6a812a3054f7d6/1.jpe?token-time=2145916800&token-hash=UQRWf01TwHDV4Cls1K0YAOAjM29ssif7hLVq0ESQ0hs%3D" alt="nemu" width="100"></td>
|
<td><img src="https://c10.patreonusercontent.com/3/eyJ3IjoyMDB9/patreon-media/p/user/13039004/509d0c412eb14ae08d6a812a3054f7d6/1.jpe?token-time=2145916800&token-hash=UQRWf01TwHDV4Cls1K0YAOAjM29ssif7hLVq0ESQ0hs%3D" alt="nemu" width="100"></td>
|
||||||
|
@ -135,7 +134,6 @@ Please see the [Contribution Guide](./CONTRIBUTING.md).
|
||||||
</tr><tr>
|
</tr><tr>
|
||||||
<td><a href="https://www.patreon.com/user?u=16869916">見当かなみ</a></td>
|
<td><a href="https://www.patreon.com/user?u=16869916">見当かなみ</a></td>
|
||||||
<td><a href="https://www.patreon.com/Yuzulia">YuzuRyo61</a></td>
|
<td><a href="https://www.patreon.com/Yuzulia">YuzuRyo61</a></td>
|
||||||
<td><a href="https://www.patreon.com/gutfuckllc">gutfuckllc</a></td>
|
|
||||||
<td><a href="https://www.patreon.com/mydarkstar">mydarkstar</a></td>
|
<td><a href="https://www.patreon.com/mydarkstar">mydarkstar</a></td>
|
||||||
<td><a href="https://www.patreon.com/user?u=12718187">Peter G.</a></td>
|
<td><a href="https://www.patreon.com/user?u=12718187">Peter G.</a></td>
|
||||||
<td><a href="https://www.patreon.com/user?u=13039004">nemu</a></td>
|
<td><a href="https://www.patreon.com/user?u=13039004">nemu</a></td>
|
||||||
|
@ -179,7 +177,7 @@ Please see the [Contribution Guide](./CONTRIBUTING.md).
|
||||||
<td><a href="https://www.patreon.com/user?u=12531784">Takashi Shibuya</a></td>
|
<td><a href="https://www.patreon.com/user?u=12531784">Takashi Shibuya</a></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
|
|
||||||
**Last updated:** Tue, 04 Jun 2019 04:21:06 UTC
|
**Last updated:** Tue, 11 Jun 2019 01:46:06 UTC
|
||||||
<!-- PATREON_END -->
|
<!-- PATREON_END -->
|
||||||
|
|
||||||
:four_leaf_clover: Copyright
|
:four_leaf_clover: Copyright
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "11.20.3",
|
"version": "11.20.4",
|
||||||
"codename": "daybreak",
|
"codename": "daybreak",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -5,6 +5,7 @@ export default (opts) => ({
|
||||||
return {
|
return {
|
||||||
items: [],
|
items: [],
|
||||||
queue: [],
|
queue: [],
|
||||||
|
offset: 0,
|
||||||
fetching: true,
|
fetching: true,
|
||||||
moreFetching: false,
|
moreFetching: false,
|
||||||
inited: false,
|
inited: false,
|
||||||
|
@ -80,6 +81,7 @@ export default (opts) => ({
|
||||||
this.items = x;
|
this.items = x;
|
||||||
this.more = false;
|
this.more = false;
|
||||||
}
|
}
|
||||||
|
this.offset = x.length;
|
||||||
this.inited = true;
|
this.inited = true;
|
||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
if (opts.onInited) opts.onInited(this);
|
if (opts.onInited) opts.onInited(this);
|
||||||
|
@ -96,7 +98,11 @@ export default (opts) => ({
|
||||||
if (params && params.then) params = await params;
|
if (params && params.then) params = await params;
|
||||||
await this.$root.api(this.pagination.endpoint, {
|
await this.$root.api(this.pagination.endpoint, {
|
||||||
limit: (this.pagination.limit || 10) + 1,
|
limit: (this.pagination.limit || 10) + 1,
|
||||||
|
...(this.pagination.endpoint === 'notes/search' ? {
|
||||||
|
offset: this.offset,
|
||||||
|
} : {
|
||||||
untilId: this.items[this.items.length - 1].id,
|
untilId: this.items[this.items.length - 1].id,
|
||||||
|
}),
|
||||||
...params
|
...params
|
||||||
}).then(x => {
|
}).then(x => {
|
||||||
if (x.length == (this.pagination.limit || 10) + 1) {
|
if (x.length == (this.pagination.limit || 10) + 1) {
|
||||||
|
@ -107,6 +113,7 @@ export default (opts) => ({
|
||||||
this.items = this.items.concat(x);
|
this.items = this.items.concat(x);
|
||||||
this.more = false;
|
this.more = false;
|
||||||
}
|
}
|
||||||
|
this.offset += x.length;
|
||||||
this.moreFetching = false;
|
this.moreFetching = false;
|
||||||
}, e => {
|
}, e => {
|
||||||
this.moreFetching = false;
|
this.moreFetching = false;
|
||||||
|
|
|
@ -33,6 +33,7 @@ const defaultSettings = {
|
||||||
mutedWords: [],
|
mutedWords: [],
|
||||||
gamesReversiShowBoardLabels: false,
|
gamesReversiShowBoardLabels: false,
|
||||||
gamesReversiUseAvatarStones: true,
|
gamesReversiUseAvatarStones: true,
|
||||||
|
disableAnimatedMfm: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const defaultDeviceSettings = {
|
const defaultDeviceSettings = {
|
||||||
|
|
|
@ -14,6 +14,7 @@ export type Source = {
|
||||||
db: string;
|
db: string;
|
||||||
user: string;
|
user: string;
|
||||||
pass: string;
|
pass: string;
|
||||||
|
disableCache?: boolean;
|
||||||
extra?: { [x: string]: string };
|
extra?: { [x: string]: string };
|
||||||
};
|
};
|
||||||
redis: {
|
redis: {
|
||||||
|
|
|
@ -96,7 +96,7 @@ export function initDb(justBorrow = false, sync = false, log = false) {
|
||||||
extra: config.db.extra,
|
extra: config.db.extra,
|
||||||
synchronize: process.env.NODE_ENV === 'test' || sync,
|
synchronize: process.env.NODE_ENV === 'test' || sync,
|
||||||
dropSchema: process.env.NODE_ENV === 'test' && !justBorrow,
|
dropSchema: process.env.NODE_ENV === 'test' && !justBorrow,
|
||||||
cache: {
|
cache: !config.db.disableCache ? {
|
||||||
type: 'redis',
|
type: 'redis',
|
||||||
options: {
|
options: {
|
||||||
host: config.redis.host,
|
host: config.redis.host,
|
||||||
|
@ -107,7 +107,7 @@ export function initDb(justBorrow = false, sync = false, log = false) {
|
||||||
db: config.redis.db || 0
|
db: config.redis.db || 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
} : false,
|
||||||
logging: log,
|
logging: log,
|
||||||
logger: log ? new MyCustomLogger() : undefined,
|
logger: log ? new MyCustomLogger() : undefined,
|
||||||
entities: [
|
entities: [
|
||||||
|
|
|
@ -72,6 +72,7 @@ export class DriveFile {
|
||||||
})
|
})
|
||||||
public properties: Record<string, any>;
|
public properties: Record<string, any>;
|
||||||
|
|
||||||
|
@Index()
|
||||||
@Column('boolean')
|
@Column('boolean')
|
||||||
public storedInternal: boolean;
|
public storedInternal: boolean;
|
||||||
|
|
||||||
|
@ -146,6 +147,7 @@ export class DriveFile {
|
||||||
/**
|
/**
|
||||||
* 外部の(信頼されていない)URLへの直リンクか否か
|
* 外部の(信頼されていない)URLへの直リンクか否か
|
||||||
*/
|
*/
|
||||||
|
@Index()
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
comment: 'Whether the DriveFile is direct link to remote server.'
|
comment: 'Whether the DriveFile is direct link to remote server.'
|
||||||
|
|
Loading…
Reference in a new issue