Send Update activity
This commit is contained in:
parent
3efffbcf22
commit
57a63d38aa
3 changed files with 56 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue