# GIFs של Discourse

**URL:** https://meta.discourse.org/t/discourse-gifs/158738
**Category:** Theme component
**Tags:** official, gifs
**Created:** [24 ביולי,‏ 2020,‏ 10:24pm UTC](https://meta.discourse.org/t/discourse-gifs/158738 "2020-07-24T22:24:05Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)
#### Post date: [16 בפברואר,‏ 2022,‏ 12:03am UTC](https://meta.discourse.org/t/discourse-gifs/158738/200 "2022-02-16T00:03:21Z")

</div>

Ok thanks, one question, is the latest version of the plugin compatible with Stable 2.8.1?

> [@Falco](#):
>
> You must be running the latest version of the chat plugin.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [16 בפברואר,‏ 2022,‏ 12:04am UTC](https://meta.discourse.org/t/discourse-gifs/158738/201 "2022-02-16T00:04:15Z")

</div>

Not sure, as we do not run stable and the chat plugin is still on alpha and rapidly changing.

---

<div class="post-metadata">

### Author: ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)
#### Post date: [16 בפברואר,‏ 2022,‏ 12:06am UTC](https://meta.discourse.org/t/discourse-gifs/158738/202 "2022-02-16T00:06:24Z")

</div>

Ok, I got it, thank you very much.

> [@Falco](#):
>
> Not sure, as we do not run stable and the chat plugin is still on alpha and rapidly changing.

---

<div class="post-metadata">

### Author: ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)
#### Post date: [16 בפברואר,‏ 2022,‏ 12:51am UTC](https://meta.discourse.org/t/discourse-gifs/158738/203 "2022-02-16T00:51:11Z")

</div>

@RGJ Question, When the chat runs in stable, then will I have the latest version of the plugin on my forum?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [16 בפברואר,‏ 2022,‏ 5:02am UTC](https://meta.discourse.org/t/discourse-gifs/158738/204 "2022-02-16T05:02:45Z")

</div>

No, the chat plugin is still on alpha and rapidly changing, and the latest version of the chat plugin does not work on the stable branch of Discourse, so we pin it to an earlier version.

---

<div class="post-metadata">

### Author: ![PaulinaMX](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulinamx/32/210473_2.png) [@PaulinaMX](https://meta.discourse.org/u/PaulinaMX)
#### Post date: [16 בפברואר,‏ 2022,‏ 5:05am UTC](https://meta.discourse.org/t/discourse-gifs/158738/205 "2022-02-16T05:05:28Z")

</div>

Oh perfect, I had not understood the matter well.

> [@RGJ](#):
>
> No, the chat plugin is still on alpha and rapidly changing, and the latest version of the chat plugin does not work on the stable branch of Discourse, so we pin it to an earlier version.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [21 ביוני,‏ 2022,‏ 8:19pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/217 "2022-06-21T20:19:55Z")

</div>

> [@Falco](#):
>
> ### Obtaining a Tenor API key
> 
> Get that key at the official Tenor site: [GIF API - Better, Faster & Free | Get Your GIFs with Tenor](https://tenor.com/gifapi)

For those willing to choose Tenor and don’t already have a (v1) key, the component won’t work as it uses the first version of the API, which is legacy. Delivered keys are now v2 and the endpoints have changed :

> **[Endpoints  |  Tenor  |  Google for Developers](https://developers.google.com/tenor/guides/endpoints)**

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [21 ביוני,‏ 2022,‏ 8:25pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/218 "2022-06-21T20:25:21Z")

</div>

Tenor support was added by @merefield. Are you planning on updating it for 2.0?

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [21 ביוני,‏ 2022,‏ 8:35pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/219 "2022-06-21T20:35:49Z")

</div>

Hi Falco, I’m not sure whether you mean Robert or me 😅 , as it makes a lot more sense Robert, I’m for sure not planning it (probably out of my depth to do it cleanly, but hey, I could try!)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [22 ביוני,‏ 2022,‏ 8:12am UTC](https://meta.discourse.org/t/discourse-gifs/158738/220 "2022-06-22T08:12:50Z")

</div>

This is a better link to describe the changes: [How to migrate from Tenor's V1 API &nbsp;|&nbsp; Google for Developers](https://developers.google.com/tenor/guides/migrate-from-v1)

I’m afraid I am on deadline for a project atm but happy to look at this soon if it remains outstanding.

---

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [2 בספטמבר,‏ 2022,‏ 6:52pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/221 "2022-09-02T18:52:45Z")

</div>

```plaintext
FAILED
--------------------
[2022-09-02T18:17:29.927471 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile'
ENOENT: no such file or directory, open '/var/www/discourse/plugins/discourse-gifs/plugin.rb'1

```

Is there a known issue with this component a the moment?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [2 בספטמבר,‏ 2022,‏ 7:10pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/222 "2022-09-02T19:10:39Z")

</div>

Hi @Alon1 - it sounds like you’ve tried to install this theme component as a plugin in your `app.yml` file. This doesn’t work - you should remove the line from your `app.yml` file.

More context about why this only just started causing errors can be found in [this post](https://meta.discourse.org/t/error-after-update-failed-today-rake-themes-update-assets-precompile/237960/4)

---

<div class="post-metadata">

### Author: ![tnoor-co](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnoor-co/32/273605_2.png) [@tnoor-co](https://meta.discourse.org/u/tnoor-co)
#### Post date: [11 בספטמבר,‏ 2022,‏ 8:09pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/223 "2022-09-11T20:09:56Z")

</div>

Just requested a PR with the changes needed for Tenor V2. Tenor V1 credentials are compatible with V2, so this should hopefully not be a breaking change. I do not have a V1 credential to test, but I tested it with V2 and it works great for me.

[https://github.com/discourse/discourse-gifs/pull/27](https://github.com/discourse/discourse-gifs/pull/27)

My [forked branch](https://github.com/tnoor-co/discourse-gifs/tree/tenor_v2) is open to others but please use it at your own risk.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [11 בספטמבר,‏ 2022,‏ 8:48pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/225 "2022-09-11T20:48:17Z")

</div>

Great, thank you! I’ve responded on Github.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [11 בספטמבר,‏ 2022,‏ 10:40pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/226 "2022-09-11T22:40:28Z")

</div>

> [@tnoor-co](#):
>
> Tenor V1 credentials are compatible with V2, so this should hopefully not be a breaking change

Actually, having also tested this, I believe V1 key is not compatible and once this is merged users will need to register their site as a project on the Google Cloud Console and add the Tenor API, generate a key and update their settings:

> **[Google Cloud Platform](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fconsole.cloud.google.com%2Fapis%2Fdashboard&dsh=S-1476029855%3A1780315544225306&followup=https%3A%2F%2Fconsole.cloud.google.com%2Fapis%2Fdashboard&osid=1&passive=1209600&service=cloudconsole&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=AWa2PatpSnEGt9_RcYTKjsIulthxutPgp6ppEBCF7Mm5mkW9dMkcU5qrChAQaUESj9xnUZdDi8foKg)**
>
> Google Cloud Platform lets you build, deploy, and scale applications, websites, and services on the same infrastructure as Google.

But I don’t think that can be helped and moving to the new API is a very good idea.

---

<div class="post-metadata">

### Author: ![tnoor-co](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnoor-co/32/273605_2.png) [@tnoor-co](https://meta.discourse.org/u/tnoor-co)
#### Post date: [11 בספטמבר,‏ 2022,‏ 11:14pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/227 "2022-09-11T23:14:14Z")

</div>

> [@merefield](#):
>
> But I don’t think that can be helped and moving to the new API is a very good idea.

I’ll look into adding a v1/v2 toggle to keep this from being a breaking change.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [12 בספטמבר,‏ 2022,‏ 8:15am UTC](https://meta.discourse.org/t/discourse-gifs/158738/228 "2022-09-12T08:15:08Z")

</div>

Although that will still be an upstream breaking change once the original API is decommissioned? I’d get a steer from team as to whether that’s necessary. It will give people more time though. Let’s discuss on the PR.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [12 בספטמבר,‏ 2022,‏ 2:39pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/229 "2022-09-12T14:39:18Z")

</div>

Thanks for the PR @tnoor-co!

Thinking about this, since Tenor V1 API keys are impossible to get now even maintaining this theme component Tenor V1 part will become a hassle, as a developer needs a working API to test it locally.

With that in mind I’d say we remove Tenor V1 from the component now. Admins using Tenor like @PaulinaMX can hold on the update and get a V2 API key before updating. We can also keep a `tenor-v1` branch around for a while for people that need it.

What do you think @merefield ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [12 בספטמבר,‏ 2022,‏ 2:43pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/230 "2022-09-12T14:43:02Z")

</div>

Agree.

Whilst keeping in mind that @tnoor-co has put a massive amount of effort in here (and I fear asking him to do more), my hunch tells me we should probably go for broke and remove V1 code _entirely_ for the sake of keeping simplicity & clarity of settings and code in the main branch.

It just feels like a lot of complexity to avoid the inevitable 🙂

---

<div class="post-metadata">

### Author: ![tnoor-co](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tnoor-co/32/273605_2.png) [@tnoor-co](https://meta.discourse.org/u/tnoor-co)
#### Post date: [12 בספטמבר,‏ 2022,‏ 3:17pm UTC](https://meta.discourse.org/t/discourse-gifs/158738/231 "2022-09-12T15:17:43Z")

</div>

Sounds good to me. I’ll push an update this week to remove v1 completely.

[Previous page](https://meta.discourse.org/t/discourse-gifs/158738.md?page=2)

[Next page](https://meta.discourse.org/t/discourse-gifs/158738.md?page=4)
