@@ -12,7 +12,7 @@ router.get('/', async function (req, res) {
1212 if ( ! userContent ) {
1313 return res . redirect ( '/404' ) ;
1414 }
15- const posts = await database . getNewsFeed ( userContent , config . post_limit ) ;
15+ const posts = await database . getNewsFeed ( userContent , config . postLimit ) ;
1616
1717 const bundle = {
1818 posts,
@@ -35,7 +35,7 @@ router.get('/', async function (req, res) {
3535 userContent : userContent ,
3636 posts : posts ,
3737 communityMap : communityMap ,
38- account_server : config . account_server_domain . slice ( 8 ) ,
38+ account_server : config . accountServerAddress . slice ( 8 ) ,
3939 bundle,
4040 tab : 0 ,
4141 template : 'posts_list' ,
@@ -53,7 +53,7 @@ router.get('/all', async function (req, res) {
5353 parent : null ,
5454 message_to_pid : null ,
5555 removed : false
56- } ) . limit ( config . post_limit ) . sort ( { created_at : - 1 } ) ;
56+ } ) . limit ( config . postLimit ) . sort ( { created_at : - 1 } ) ;
5757
5858 const bundle = {
5959 posts,
@@ -76,7 +76,7 @@ router.get('/all', async function (req, res) {
7676 userContent : userContent ,
7777 posts : posts ,
7878 communityMap : communityMap ,
79- account_server : config . account_server_domain . slice ( 8 ) ,
79+ account_server : config . accountServerAddress . slice ( 8 ) ,
8080 bundle,
8181 tab : 1 ,
8282 template : 'posts_list'
@@ -90,7 +90,7 @@ router.get('/more', async function (req, res) {
9090 if ( ! offset ) {
9191 offset = 0 ;
9292 }
93- const posts = await database . getNewsFeedOffset ( userContent , config . post_limit , offset ) ;
93+ const posts = await database . getNewsFeedOffset ( userContent , config . postLimit , offset ) ;
9494
9595 const bundle = {
9696 posts,
@@ -107,7 +107,7 @@ router.get('/more', async function (req, res) {
107107 moment : moment ,
108108 database : database ,
109109 bundle,
110- account_server : config . account_server_domain . slice ( 8 )
110+ account_server : config . accountServerAddress . slice ( 8 )
111111 } ) ;
112112 } else {
113113 res . sendStatus ( 204 ) ;
@@ -126,7 +126,7 @@ router.get('/all/more', async function (req, res) {
126126 parent : null ,
127127 message_to_pid : null ,
128128 removed : false
129- } ) . skip ( offset ) . limit ( config . post_limit ) . sort ( { created_at : - 1 } ) ;
129+ } ) . skip ( offset ) . limit ( config . postLimit ) . sort ( { created_at : - 1 } ) ;
130130
131131 const bundle = {
132132 posts,
@@ -135,7 +135,7 @@ router.get('/all/more', async function (req, res) {
135135 communityMap,
136136 userContent,
137137 lang : req . lang ,
138- mii_image_CDN : config . mii_image_CDN ,
138+ mii_image_CDN : config . miiImageCdn ,
139139 link : `/feed/more?offset=${ offset + posts . length } &pjax=true` ,
140140 moderator : req . moderator
141141 } ;
@@ -146,7 +146,7 @@ router.get('/all/more', async function (req, res) {
146146 moment : moment ,
147147 database : database ,
148148 bundle,
149- account_server : config . account_server_domain . slice ( 8 )
149+ account_server : config . accountServerAddress . slice ( 8 )
150150 } ) ;
151151 } else {
152152 res . sendStatus ( 204 ) ;
@@ -165,7 +165,7 @@ router.get('/all/more', async function (req, res) {
165165 parent : null ,
166166 message_to_pid : null ,
167167 removed : false
168- } ) . skip ( offset ) . limit ( config . post_limit ) . sort ( { created_at : - 1 } ) ;
168+ } ) . skip ( offset ) . limit ( config . postLimit ) . sort ( { created_at : - 1 } ) ;
169169
170170 const bundle = {
171171 posts,
@@ -174,7 +174,7 @@ router.get('/all/more', async function (req, res) {
174174 communityMap,
175175 userContent,
176176 lang : req . lang ,
177- mii_image_CDN : config . mii_image_CDN ,
177+ mii_image_CDN : config . miiImageCdn ,
178178 link : `/feed/all/more?offset=${ offset + posts . length } &pjax=true` ,
179179 moderator : req . moderator
180180 } ;
@@ -185,10 +185,10 @@ router.get('/all/more', async function (req, res) {
185185 moment : moment ,
186186 database : database ,
187187 bundle,
188- account_server : config . account_server_domain . slice ( 8 ) ,
189- cdnURL : config . CDN_domain ,
188+ account_server : config . accountServerAddress . slice ( 8 ) ,
189+ cdnURL : config . cdnDomain ,
190190 lang : req . lang ,
191- mii_image_CDN : config . mii_image_CDN ,
191+ mii_image_CDN : config . miiImageCdn ,
192192 pid : req . pid ,
193193 moderator : req . moderator
194194 } ) ;
0 commit comments