mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
cca3317a11
refs #10431 - the model layer triggers a couple of events on resource update e.g. post to page -> post.deleted, post.added - the resource_type must be always "post", because "page" is not an official model (Bookshelf won't be able to resolve the resource anymore) - the action streams looks very confusion if you see deleted and added actions when toggling the post to a static page - therefor the easiest approach for now is to only store actions for: added, edited, deleted - and we will add the context information asap - e.g. you will see that status was changed from "draft" to "published" - we can also introduce extra published actions if we want - relying on the internal event system right now makes things just more complicated and we want to keep it simple |
||
---|---|---|
.. | ||
base | ||
plugins | ||
relations | ||
accesstoken.js | ||
action.js | ||
api-key.js | ||
app-field.js | ||
app-setting.js | ||
app.js | ||
author.js | ||
client-trusted-domain.js | ||
client.js | ||
index.js | ||
integration.js | ||
invite.js | ||
member.js | ||
mobiledoc-revision.js | ||
permission.js | ||
post.js | ||
refreshtoken.js | ||
role.js | ||
session.js | ||
settings.js | ||
subscriber.js | ||
tag-public.js | ||
tag.js | ||
user.js | ||
webhook.js |