mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
chore: 🎨 format
This commit is contained in:
parent
8512744828
commit
9b2cc17d3e
@ -46,7 +46,7 @@ function processMastoFile(fn: string, path: string, dir: string, uid: string) {
|
||||
for (const note of outbox.orderedItems) {
|
||||
for (const attachment of note.object.attachment) {
|
||||
const url = attachment.url.replaceAll("..", "");
|
||||
if (url.indexOf('\0') !== -1) {
|
||||
if (url.indexOf("\0") !== -1) {
|
||||
logger.error(`Found Poison Null Bytes Attack: ${url}`);
|
||||
reject();
|
||||
return;
|
||||
|
@ -16,7 +16,10 @@ async function getRelMeLinks(url: string): Promise<string[]> {
|
||||
}
|
||||
}
|
||||
|
||||
export async function verifyLink(link: string, username: string): Promise<boolean> {
|
||||
export async function verifyLink(
|
||||
link: string,
|
||||
username: string,
|
||||
): Promise<boolean> {
|
||||
let verified = false;
|
||||
if (link.startsWith("http")) {
|
||||
const relMeLinks = await getRelMeLinks(link);
|
||||
|
@ -61,11 +61,13 @@
|
||||
<div class="buttons">
|
||||
<button
|
||||
v-if="media.comment"
|
||||
v-tooltip.noLabel="`${i18n.ts.alt}: ${
|
||||
media.comment.length > 200 ?
|
||||
media.comment.trim().slice(0, 200) + '...'
|
||||
v-tooltip.noLabel="
|
||||
`${i18n.ts.alt}: ${
|
||||
media.comment.length > 200
|
||||
? media.comment.trim().slice(0, 200) + '...'
|
||||
: media.comment.trim()
|
||||
}`"
|
||||
}`
|
||||
"
|
||||
:aria-label="i18n.ts.alt"
|
||||
class="_button"
|
||||
@click.stop="captionPopup"
|
||||
|
@ -127,8 +127,8 @@
|
||||
</FormFolder>
|
||||
<template #caption>{{
|
||||
i18n.t("_profile.metadataDescription", {
|
||||
a: '<code><a></code>',
|
||||
l: '<code><a></code>',
|
||||
a: '\<code\>\<a\>\</code\>',
|
||||
l: '\<code\>\<a\>\</code\>',
|
||||
rel: `rel="me" href="https://${host}/@${$i.username}"`
|
||||
})
|
||||
}}</template>
|
||||
|
Loading…
Reference in New Issue
Block a user