mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
parent
657d0fc067
commit
ab70a369fa
1 changed files with 18 additions and 0 deletions
|
@ -322,6 +322,24 @@ User = ghostBookshelf.Model.extend({
|
||||||
delete options.status;
|
delete options.status;
|
||||||
|
|
||||||
return filter;
|
return filter;
|
||||||
|
},
|
||||||
|
|
||||||
|
getAction(event, options) {
|
||||||
|
const actor = this.getActor(options);
|
||||||
|
|
||||||
|
// @NOTE: we ignore internal updates (`options.context.internal`) for now
|
||||||
|
if (!actor) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @TODO: implement context
|
||||||
|
return {
|
||||||
|
event: event,
|
||||||
|
resource_id: this.id || this.previous('id'),
|
||||||
|
resource_type: 'user',
|
||||||
|
actor_id: actor.id,
|
||||||
|
actor_type: actor.type
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
orderDefaultOptions: function orderDefaultOptions() {
|
orderDefaultOptions: function orderDefaultOptions() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue