diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-09-01 21:38:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-01 21:38:49 +0900 |
| commit | 4b1886990f7de0a1b993b2f3f17c3ee99f78a5ec (patch) | |
| tree | 15426a39bf9b6d30c1ddb50a61e070d5bda6300a /src/server | |
| parent | 8.20.0 (diff) | |
| parent | Send Update activity (diff) | |
| download | sharkey-4b1886990f7de0a1b993b2f3f17c3ee99f78a5ec.tar.gz sharkey-4b1886990f7de0a1b993b2f3f17c3ee99f78a5ec.tar.bz2 sharkey-4b1886990f7de0a1b993b2f3f17c3ee99f78a5ec.zip | |
Merge pull request #2570 from mei23/mei-0901-update2b
Implement ActivityPub Update(Person)
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/api/endpoints/i/update.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/api/endpoints/i/update.ts b/src/server/api/endpoints/i/update.ts index cdb4eb3f56..585339e249 100644 --- a/src/server/api/endpoints/i/update.ts +++ b/src/server/api/endpoints/i/update.ts @@ -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); }); |