Compare commits

..

No commits in common. "d448f262d6b462dd3e62fee92e5e1939c3921d39" and "4828fba7da857ac1264c94cfb1d8151331b17af5" have entirely different histories.

3 changed files with 4 additions and 25 deletions

View File

@ -18,7 +18,7 @@ type RateLimitInfo = {
} | {
code: 'RATE_LIMIT_EXCEEDED',
info: Limiter.LimiterInfo,
};
}
@Injectable()
export class RateLimiterService {
@ -68,6 +68,7 @@ export class RateLimiterService {
this.logger.debug(`${actor} ${limitation.key} min remaining: ${info.remaining}`);
if (info.remaining === 0) {
// eslint-disable-next-line no-throw-literal
return { code: 'BRIEF_REQUEST_INTERVAL', info };
}
}
@ -84,6 +85,7 @@ export class RateLimiterService {
this.logger.debug(`${actor} ${limitation.key} max remaining: ${info.remaining}`);
if (info.remaining === 0) {
// eslint-disable-next-line no-throw-literal
return { code: 'RATE_LIMIT_EXCEEDED', info };
}
}

View File

@ -18,7 +18,6 @@ SPDX-License-Identifier: AGPL-3.0-only
}"
>
<MkImgWithBlurhash
v-if="prefer.s.enableHighQualityImagePlaceholders"
:hash="image.blurhash"
:src="(prefer.s.dataSaver.media && hide) ? null : url"
:forceBlurhash="hide"
@ -28,20 +27,6 @@ SPDX-License-Identifier: AGPL-3.0-only
:width="image.properties.width"
:height="image.properties.height"
:style="hide ? 'filter: brightness(0.7);' : null"
:class="$style.image"
/>
<div
v-else-if="prefer.s.dataSaver.media || hide"
:title="image.comment || image.name"
:style="hide ? 'background: #888;' : null"
:class="$style.image"
></div>
<img
v-else
:src="url"
:alt="image.comment || image.name"
:title="image.comment || image.name"
:class="$style.image"
/>
</component>
<template v-if="hide">
@ -315,12 +300,4 @@ html[data-color-scheme=light] .visible {
font-size: 0.8em;
padding: 2px 5px;
}
.image {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
}
</style>

View File

@ -83,7 +83,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</div>
</div>
<div v-if="appearNote.files && appearNote.files.length > 0" style="margin-top: 8px;">
<div v-if="appearNote.files && appearNote.files.length > 0">
<MkMediaList ref="galleryEl" :mediaList="appearNote.files"/>
</div>
<MkPoll