Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added rich tooltips for 7tv emote links #155

Merged
merged 26 commits into from
Jul 3, 2021

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented May 31, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

I've added a new custom resolver for 7tv emotes. It uses their GQL API.
Things left to do:

  • Add proper handling for visibility value by shifting bits from it.
  • Add similar functionality from imgur resolver to show a red text explaining to user that an emote might be not safe for stream and hide the thumbnail.

@zneix zneix marked this pull request as ready for review June 6, 2021 00:11
@zneix zneix requested a review from pajlada June 6, 2021 00:13
CHANGELOG.md Outdated Show resolved Hide resolved
internal/resolvers/seventv/load.go Outdated Show resolved Hide resolved
internal/resolvers/seventv/resolver.go Show resolved Hide resolved
pkg/resolver/request.go Outdated Show resolved Hide resolved
pkg/resolver/request.go Show resolved Hide resolved
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me - I would want to proxy the thumbnail requests though. Once that's done, I'm happy to have this merged in. Should use the utils.FormatThumbnailURL on the current thumbnail format and it should be good, just have to figure out at a way to pass BaseURL to this resolver.

Please take a look at the commits I pushed to the PR too, I added some tests, changed the way the query is generated (using proper GQL variables now), standardized the 'check' function to use the same methods that FrankerFaceZ uses.

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to be working as expected 👌 Feel free to merge this into master whenever you're ready @zneix

Copy link
Collaborator Author

@zneix zneix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
ibana.pjg

@zneix zneix merged commit 60f6284 into master Jul 3, 2021
@zneix zneix deleted the zneix/feature/add-7tv-emote-resolver branch July 3, 2021 12:41
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.

3 participants