Don't post author credits if no images are added
This commit is contained in:
parent
28f34bea6d
commit
750c76c80e
1 changed files with 15 additions and 13 deletions
|
@ -337,6 +337,7 @@ export class Postbuilder {
|
||||||
|
|
||||||
const images = await imageUploader.attemptToUpload(4)
|
const images = await imageUploader.attemptToUpload(4)
|
||||||
const authors = Array.from(new Set(imageUploader.getCurrentAuthors()))
|
const authors = Array.from(new Set(imageUploader.getCurrentAuthors()))
|
||||||
|
if(authors.length > 0){
|
||||||
await this._poster.writeMessage([
|
await this._poster.writeMessage([
|
||||||
"In total, " + totalImageContributorCount + " different contributors uploaded " + totalImagesCreated + " images.\n",
|
"In total, " + totalImageContributorCount + " different contributors uploaded " + totalImagesCreated + " images.\n",
|
||||||
"Images in this thread are randomly selected from them and were made by: ",
|
"Images in this thread are randomly selected from them and were made by: ",
|
||||||
|
@ -350,6 +351,7 @@ export class Postbuilder {
|
||||||
spoilerText: this._config.contentWarning
|
spoilerText: this._config.contentWarning
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue