Skip to content

fix some Tweet properties defaulting to undefined. - #31

Merged
karashiiro merged 1 commit into
the-convocation:mainfrom
Owen3H:tweet-props-fix
Jul 17, 2023
Merged

fix some Tweet properties defaulting to undefined.#31
karashiiro merged 1 commit into
the-convocation:mainfrom
Owen3H:tweet-props-fix

Conversation

@Owen3H

@Owen3H Owen3H commented Jul 17, 2023

Copy link
Copy Markdown
Contributor

The following properties on the Tweet interface are now false as default.
This most likely fixes any methods that caused issues as a result of checking any of these.

  • isQuoted
  • isRetweet
  • isReply
  • isPin
  • sensitiveContent

Tweet tests have been updated accordingly.

The following properties on the `Tweet` interface are now `false` as default. This most likely fixes any method that relies on checking these.

- isQuoted
- isRetweet
- isReply
- isPin
- sensitiveContent

Tweet tests have been updated accordingly.
@karashiiro

Copy link
Copy Markdown
Collaborator

The reason I left those as undefined was because I thought there was some semantic difference between the reply flag being undefined versus false; I don't remember any specific cases though, so I may be imagining things.

Looks good, merging.

@karashiiro
karashiiro merged commit b4a5208 into the-convocation:main Jul 17, 2023
@Owen3H

Owen3H commented Jul 17, 2023

Copy link
Copy Markdown
Contributor Author

It's all good, just confused me when I was getting no results. Thank you :)

@Owen3H
Owen3H deleted the tweet-props-fix branch July 17, 2023 18:18
@Owen3H
Owen3H restored the tweet-props-fix branch July 17, 2023 18:36
@Owen3H
Owen3H deleted the tweet-props-fix branch August 11, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants