comparison src/nabble/model/DailyNumber.java @ 47:72765b66e2c3

remove mailing list code
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 18 Jun 2021 17:44:24 -0600
parents 7ecd1a4ef557
children
comparison
equal deleted inserted replaced
46:7ac7f55e16cf 47:72765b66e2c3
181 DailyNumber.forumsStarted.inc(); 181 DailyNumber.forumsStarted.inc();
182 } 182 }
183 return; 183 return;
184 } 184 }
185 NodeImpl post = node; 185 NodeImpl post = node;
186 if( post.isFromMailingList() ) { 186 DailyNumber.internalPosts.inc();
187 DailyNumber.externalPosts.inc(); 187 DailyNumber.localForumPosts.inc();
188 } else {
189 DailyNumber.internalPosts.inc();
190 if( post.getAssociatedMailingList() == null )
191 DailyNumber.localForumPosts.inc();
192 }
193 NodeImpl parent = post.getParentImpl(); 188 NodeImpl parent = post.getParentImpl();
194 if( parent != null && parent.getKind()==Node.Kind.POST && !parent.isFromMailingList() ) 189 if( parent != null && parent.getKind()==Node.Kind.POST )
195 DailyNumber.replies.inc(); 190 DailyNumber.replies.inc();
196 191
197 boolean isFirstPost = parent != null && parent.getKind()==Node.Kind.APP && parent.getDescendantCount() == 1; 192 boolean isFirstPost = parent != null && parent.getKind()==Node.Kind.APP && parent.getDescendantCount() == 1;
198 if (isFirstPost) { 193 if (isFirstPost) {
199 String type = parent.getType(); 194 String type = parent.getType();