Skip to content

feat: update GIF embed detection from Tenor to Giphy URLs#996

Closed
sanasol wants to merge 1 commit into
stoatchat:mainfrom
sanasol:feat/giphy-url-detection
Closed

feat: update GIF embed detection from Tenor to Giphy URLs#996
sanasol wants to merge 1 commit into
stoatchat:mainfrom
sanasol:feat/giphy-url-detection

Conversation

@sanasol
Copy link
Copy Markdown
Contributor

@sanasol sanasol commented Mar 4, 2026

Updates GIF embed detection to match Giphy URLs instead of Tenor URLs, since the gifbox backend is migrating from Tenor to Giphy.

Changes https://tenor.comhttps://giphy.com in:

  • Embed.tsx (embed component GIF detection)
  • Message.tsx (inline GIF message detection)

Related: stoatchat/stoatchat#661, stoatchat/for-android#94

Tested and live on https://chat.sanhost.net

Signed-off-by: sanasol <mail@sanasol.ws>
@Pecacheu
Copy link
Copy Markdown
Contributor

Pecacheu commented Mar 5, 2026

Interestingly for me, Giphy URLs already work with embeds exactly as Tenor GIFs do. I think it might be because it's passing this first check (props.embed as WebsiteEmbed).specialContent?.type === "GIF", thus bypassing the second check of the domain name.

@IAmTomahawkx
Copy link
Copy Markdown
Member

The gifbox backend is not moving to giphy, unsure where that notion came from.

@sanasol
Copy link
Copy Markdown
Contributor Author

sanasol commented Mar 10, 2026

@IAmTomahawkx sorry for misleading, it should come together with stoatchat/stoatchat#661
But thats just proposal/for other users who searching alternative gif provider since google is not providing new api keys for tenor now.

@Pecacheu
Copy link
Copy Markdown
Contributor

I suppose for now we should close this then, until the alternative that Zomatree mentioned is ready to be switched to.

@Pecacheu Pecacheu closed this Mar 16, 2026
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