Skip to content

Commit

Permalink
markdown mode下thread.type=99
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 9, 2021
1 parent b0cb5fb commit d5ac329
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/convert/converter/thread.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export class ThreadService extends BaseService {

private readonly skipAnonymous: boolean

private threadType = 1

constructor(
private readonly threadModel: ThreadModel,
private readonly forumThreadModel: ForumThreadModel,
Expand All @@ -38,6 +40,9 @@ export class ThreadService extends BaseService {
if (this.batchSize > 10) {
this.batchSize = Math.round(this.batchSize / 10)
}
if (this.configService.get('CONVERT_MODE') === 'markdown') {
this.threadType = 99
}
}

public async execute(): Promise<void> {
Expand Down Expand Up @@ -100,7 +105,7 @@ export class ThreadService extends BaseService {
id: thread.tid,
user_id: thread.authorid,
category_id: thread.fid,
type: 1,
type: this.threadType,
title: thread.subject,
post_count: thread.replies + 1,
view_count: thread.views,
Expand Down

0 comments on commit d5ac329

Please sign in to comment.