mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-07 01:04:03 +09:00
chore: fix lint
This commit is contained in:
@ -29,7 +29,7 @@ export async function uploadFromUrl({
|
||||
sensitive = false,
|
||||
force = false,
|
||||
isLink = false,
|
||||
comment = null
|
||||
comment = null,
|
||||
}: Args): Promise<DriveFile> {
|
||||
let name = new URL(url).pathname.split('/').pop() || null;
|
||||
if (name == null || !DriveFiles.validateFileName(name)) {
|
||||
@ -38,7 +38,7 @@ export async function uploadFromUrl({
|
||||
|
||||
// If the comment is same as the name, skip comment
|
||||
// (image.name is passed in when receiving attachment)
|
||||
if (comment !== null && name == comment) {
|
||||
if (comment !== null && name === comment) {
|
||||
comment = null;
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ export async function insertFollowingDoc(followee: { id: User['id']; host: User[
|
||||
// Publish followed event
|
||||
if (Users.isLocalUser(followee)) {
|
||||
Users.pack(follower.id, followee).then(async packed => {
|
||||
publishMainStream(followee.id, 'followed', packed)
|
||||
publishMainStream(followee.id, 'followed', packed);
|
||||
|
||||
const webhooks = (await getActiveWebhooks()).filter(x => x.userId === followee.id && x.on.includes('followed'));
|
||||
for (const webhook of webhooks) {
|
||||
|
Reference in New Issue
Block a user