mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Updated url service to use type column
refs #10922 This updates the frontend url service to replace references to the `page` column with the `type` column.
This commit is contained in:
parent
57afb2de2b
commit
61612ba8fd
@ -8,7 +8,7 @@ module.exports = [
|
||||
type: 'posts',
|
||||
modelOptions: {
|
||||
modelName: 'Post',
|
||||
filter: 'visibility:public+status:published+page:false',
|
||||
filter: 'visibility:public+status:published+type:post',
|
||||
exclude: [
|
||||
'title',
|
||||
'mobiledoc',
|
||||
@ -73,7 +73,7 @@ module.exports = [
|
||||
'primary_tag',
|
||||
'primary_author'
|
||||
],
|
||||
filter: 'visibility:public+status:published+page:true'
|
||||
filter: 'visibility:public+status:published+type:page'
|
||||
},
|
||||
events: {
|
||||
add: 'page.published',
|
||||
|
@ -8,7 +8,7 @@ module.exports = [
|
||||
type: 'posts',
|
||||
modelOptions: {
|
||||
modelName: 'Post',
|
||||
filter: 'visibility:public+status:published+page:false',
|
||||
filter: 'visibility:public+status:published+type:post',
|
||||
exclude: [
|
||||
'title',
|
||||
'mobiledoc',
|
||||
@ -79,7 +79,7 @@ module.exports = [
|
||||
'primary_tag',
|
||||
'primary_author'
|
||||
],
|
||||
filter: 'visibility:public+status:published+page:true'
|
||||
filter: 'visibility:public+status:published+type:page'
|
||||
},
|
||||
events: {
|
||||
add: 'page.published',
|
||||
|
Loading…
Reference in New Issue
Block a user