Skip to content

Commit 3d34400

Browse files
authored
Merge branch 'develop' into calintje/solana-v2
2 parents 66b9033 + 1de4a08 commit 3d34400

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/client-twitter/src/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export class ClientBase extends EventEmitter {
271271
const obj = {
272272
id: tweet.id,
273273
name:
274-
tweet.name ?? tweet?.user_results?.result?.legacy.name,
274+
tweet.name ?? tweet.core?.user_results?.result?.legacy.name,
275275
username:
276276
tweet.username ??
277277
tweet.core?.user_results?.result?.legacy.screen_name,

packages/core/src/runtime.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1509,12 +1509,12 @@ Text: ${attachment.text}
15091509
this.character.topics
15101510
.sort(() => 0.5 - Math.random())
15111511
.slice(0, 5)
1512-
.map((topic, index) => {
1513-
if (index === this.character.topics.length - 2) {
1512+
.map((topic, index, array) => {
1513+
if (index === array.length - 2) {
15141514
return topic + " and ";
15151515
}
15161516
// if last topic, don't add a comma
1517-
if (index === this.character.topics.length - 1) {
1517+
if (index === array.length - 1) {
15181518
return topic;
15191519
}
15201520
return topic + ", ";

0 commit comments

Comments
 (0)