mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-23 20:23:08 +02:00
Merge branch 'master' of https://github.com/syuilo/misskey
This commit is contained in:
commit
93786aa510
3 changed files with 3 additions and 3 deletions
|
@ -92,7 +92,7 @@ export default Vue.component('misskey-flavored-markdown', {
|
|||
case 'hashtag':
|
||||
return createElement('a', {
|
||||
attrs: {
|
||||
href: `${url}/tags/${token.hashtag}`,
|
||||
href: `${url}/tags/${encodeURIComponent(token.hashtag)}`,
|
||||
target: '_blank'
|
||||
}
|
||||
}, token.content);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<div>
|
||||
<div v-for="stat in stats" :key="stat.tag">
|
||||
<div class="tag">
|
||||
<router-link :to="`/tags/${ stat.tag }`" :title="stat.tag">#{{ stat.tag }}</router-link>
|
||||
<router-link :to="`/tags/${ encodeURIComponent(stat.tag) }`" :title="stat.tag">#{{ stat.tag }}</router-link>
|
||||
<p>{{ '%i18n:@count%'.replace('{}', stat.usersCount) }}</p>
|
||||
</div>
|
||||
<x-chart class="chart" :src="stat.chart"/>
|
||||
|
|
|
@ -25,7 +25,7 @@ async function save(readable: stream.Readable, name: string, type: string, hash:
|
|||
const minio = new Minio.Client(config.drive.config);
|
||||
const id = uuid.v4();
|
||||
const obj = `${config.drive.prefix}/${id}`;
|
||||
await minio.putObject(config.drive.bucket, obj, readable);
|
||||
await minio.putObject(config.drive.bucket, obj, readable, size, { 'Content-Type': type });
|
||||
|
||||
Object.assign(metadata, {
|
||||
withoutChunks: true,
|
||||
|
|
Loading…
Reference in a new issue