mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
parent
5d7ad0518a
commit
657d0fc067
1 changed files with 18 additions and 0 deletions
|
@ -68,6 +68,24 @@ Tag = ghostBookshelf.Model.extend({
|
|||
delete attrs.parent_id;
|
||||
|
||||
return attrs;
|
||||
},
|
||||
|
||||
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: 'tag',
|
||||
actor_id: actor.id,
|
||||
actor_type: actor.type
|
||||
};
|
||||
}
|
||||
}, {
|
||||
orderDefaultOptions: function orderDefaultOptions() {
|
||||
|
|
Loading…
Reference in a new issue