RGJ
(Richard - Communiteq)
July 7, 2023, 8:31am
1
It’s currently impossible to install the discourse-gifs component on stable.
Adding the theme component fails with a 500 server error.
This is happening because the .discourse-compatibility
file contains an invalid reference, hash 4ce8ea7496fa630246e17a62a8bf87298338ed25
does not exist. @joffreyjaffeux do you have any idea what the hash should be?
2 Likes
nat
(Natalie T)
July 10, 2023, 9:18am
2
Ah, 4ce8ea7496fa630246e17a62a8bf87298338ed25
is available on main
.
committed 04:41PM - 29 May 23 UTC
Usage:
```
api.sendChatMessage(channelId, message, { threadId: 6 });
```
Separately, I think we have to bump that line up to 3.1.0.beta5
3.1.0.beta4
(instead of 3.1.0.beta3) as well looking at this commit above?
Will leave this to Joffrey.
4 Likes
nat
(Natalie T)
July 12, 2023, 7:52am
10
I tested this fix locally, and it should be solved here (PR provides a description of the problem):
discourse:main
← discourse:update-discourse-compat
opened 07:47AM - 12 Jul 23 UTC
`.discourse-compatibility` can be quite confusing, but the gist of it is:
✔️ `… <discourse-core-version>: theme-sha`
❌ `<discourse-core-version>: discourse-core-sha`
Scenario:
Discourse core current version is `3.1.0.beta5`, and I make a commit to core that defines a new API.
In my plugin / theme, I make a commit that uses that API. That commit's sha is `eb3ec48c`.
The values that go into the compat file is:
`3.1.0.beta5` `-1`: `eb3ec48c` `-1`
therefore
`3.1.0.beta4: c48cf8812c3d`
Related:
- Solves https://meta.discourse.org/t/invalid-hash-in-discourse-compatiblity/270865/2
- https://github.com/discourse/discourse-gifs/pull/38
- https://github.com/discourse/discourse/pull/21783
5 Likes
nat
(Natalie T)
Closed
July 15, 2023, 12:00am
11
This topic was automatically closed after 2 days. New replies are no longer allowed.