Send Update activity

This commit is contained in:
mei23 2018-09-01 20:17:30 +09:00
parent 3efffbcf22
commit 57a63d38aa
3 changed files with 56 additions and 0 deletions

View file

@ -5,6 +5,7 @@ import DriveFile from '../../../../models/drive-file';
import acceptAllFollowRequests from '../../../../services/following/requests/accept-all';
import { IApp } from '../../../../models/app';
import config from '../../../../config';
import { publishToFollowers } from '../../../../services/i/update';
export const meta = {
desc: {
@ -144,4 +145,7 @@ export default async (params: any, user: ILocalUser, app: IApp) => new Promise(a
if (user.isLocked && isLocked === false) {
acceptAllFollowRequests(user);
}
// フォロワーにUpdateを配信
publishToFollowers(user._id);
});