Skip to content

Commit d87b5f3

Browse files
committed
Update some lingering references to id_str
With the move to mastodon these should now be id.
1 parent a976f5f commit d87b5f3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ var clientID = "Cli0";
153153
}
154154

155155
// Tweet ID will be used in tmp filenames passed into shell exec, so check it's safe. For a real tweet it should be numeric while for a testcase it can contain alphanumerics.
156-
if (/\W/.test(tweet.id_str)) {
157-
console.error("id_str contained unexpected character");
156+
if (/\W/.test(tweet.id)) {
157+
console.error("id contained unexpected character");
158158
process.exit(1);
159159
}
160160

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ function Tests(since_id){
177177
function noOutput(tweet) {
178178
// If the checksum is empty then we expect no output.
179179
if (tweet.bbcmicrobot_checksum == '') {
180-
console.log(tweet.id_str+' TEST - \u001b[32mOK\u001b[0m')
180+
console.log(tweet.id+' TEST - \u001b[32mOK\u001b[0m')
181181
} else {
182-
throw new Error(tweet.id_str+' TEST - \u001b[31mFAILED\u001b[0m')
182+
throw new Error(tweet.id+' TEST - \u001b[31mFAILED\u001b[0m')
183183
}
184184
}
185185

186186
function block(tweet) {
187-
throw new Error(tweet.id_str+' TEST - \u001b[31mFAILED\u001b[0m')
187+
throw new Error(tweet.id+' TEST - \u001b[31mFAILED\u001b[0m')
188188
}
189189

190190
module.exports = {

0 commit comments

Comments
 (0)