Publish pinned notes (#2731)

This commit is contained in:
MeiMei
2018-09-18 13:08:27 +09:00
committed by syuilo
parent bec48319ec
commit 11496d887e
9 changed files with 135 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
import config from '../../../config';
import { ILocalUser } from '../../../models/user';
export default (user: ILocalUser, target: any, object: any) => ({
type: 'Add',
actor: `${config.url}/users/${user._id}`,
target,
object
});