mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Remove dynamic generation of static resource_type
no-issue
This commit is contained in:
parent
e3c3633183
commit
5d7ad0518a
@ -627,7 +627,7 @@ Post = ghostBookshelf.Model.extend({
|
|||||||
return {
|
return {
|
||||||
event: event,
|
event: event,
|
||||||
resource_id: this.id || this.previous('id'),
|
resource_id: this.id || this.previous('id'),
|
||||||
resource_type: this.tableName.replace(/s$/, ''),
|
resource_type: 'post',
|
||||||
actor_id: actor.id,
|
actor_id: actor.id,
|
||||||
actor_type: actor.type
|
actor_type: actor.type
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user