We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 55a7eae + 8046809 commit aa2f4bfCopy full SHA for aa2f4bf
packages/client-twitter/src/post.ts
@@ -161,11 +161,11 @@ export class TwitterPostClient {
161
162
if (
163
this.runtime.getSetting("POST_IMMEDIATELY") != null &&
164
- this.runtime.getSetting("POST_IMMEDIATELY") != ""
+ this.runtime.getSetting("POST_IMMEDIATELY") !== ""
165
) {
166
- postImmediately = parseBooleanFromText(
167
- this.runtime.getSetting("POST_IMMEDIATELY")
168
- );
+ // Retrieve setting, default to false if not set or if the value is not "true"
+ postImmediately = this.runtime.getSetting("POST_IMMEDIATELY") === "true" || false;
+
169
}
170
171
if (postImmediately) {
0 commit comments