fix lint
This commit is contained in:
@@ -59,7 +59,7 @@ export default async function(resolver: Resolver, actor: IRemoteUser, activity:
|
||||
renote,
|
||||
visibility: activityAudience.visibility,
|
||||
visibleUsers: activityAudience.visibleUsers,
|
||||
uri
|
||||
uri,
|
||||
});
|
||||
} finally {
|
||||
unlock();
|
||||
|
@@ -12,7 +12,7 @@ export default async (actor: IRemoteUser, activity: IFlag): Promise<string> => {
|
||||
|
||||
const userIds = uris.filter(uri => uri.startsWith(config.url + '/users/')).map(uri => uri.split('/').pop());
|
||||
const users = await Users.find({
|
||||
id: In(userIds)
|
||||
id: In(userIds),
|
||||
});
|
||||
if (users.length < 1) return `skip`;
|
||||
|
||||
@@ -23,7 +23,7 @@ export default async (actor: IRemoteUser, activity: IFlag): Promise<string> => {
|
||||
targetUserHost: users[0].host,
|
||||
reporterId: actor.id,
|
||||
reporterHost: actor.host,
|
||||
comment: `${activity.content}\n${JSON.stringify(uris, null, 2)}`
|
||||
comment: `${activity.content}\n${JSON.stringify(uris, null, 2)}`,
|
||||
});
|
||||
|
||||
return `ok`;
|
||||
|
@@ -15,7 +15,7 @@ export default async (actor: IRemoteUser, activity: IAccept): Promise<string> =>
|
||||
|
||||
const following = await Followings.findOne({
|
||||
followerId: follower.id,
|
||||
followeeId: actor.id
|
||||
followeeId: actor.id,
|
||||
});
|
||||
|
||||
if (following) {
|
||||
|
@@ -7,7 +7,7 @@ export const undoAnnounce = async (actor: IRemoteUser, activity: IAnnounce): Pro
|
||||
const uri = getApId(activity);
|
||||
|
||||
const note = await Notes.findOne({
|
||||
uri
|
||||
uri,
|
||||
});
|
||||
|
||||
if (!note) return 'skip: no such Announce';
|
||||
|
@@ -19,12 +19,12 @@ export default async (actor: IRemoteUser, activity: IFollow): Promise<string> =>
|
||||
|
||||
const req = await FollowRequests.findOne({
|
||||
followerId: actor.id,
|
||||
followeeId: followee.id
|
||||
followeeId: followee.id,
|
||||
});
|
||||
|
||||
const following = await Followings.findOne({
|
||||
followerId: actor.id,
|
||||
followeeId: followee.id
|
||||
followeeId: followee.id,
|
||||
});
|
||||
|
||||
if (req) {
|
||||
|
Reference in New Issue
Block a user