-
Notifications
You must be signed in to change notification settings - Fork 56
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
How does the embed plugin work? There is no render github link #189
Comments
Even the youtube link cannot be parsed correctly, for example: https://www.youtube.com/watch?v=VINZeWNhgIU. I don’t understand how to call this plug-in. The background options are already turned on. |
My Answer version is also 1.3.6, so can you check what the Embed plugin version is? |
My plugin is up to date, and I found that I modified the code of |
Error log
In the database, it's like thisI don't understand why this plugin isn't working |
mysql 8.2.0 |
Check whether the plugin field Also, are all embeds not displayed, or just some of them? |
|
Once this plugin is enabled, all question pages cannot be displayed properly |
After turning off the plugin, other interfaces are normal? I turn on the plugin and visit q58.org to try it. |
After closing this plugin, all functions are normal. Do you need me to open it now for you to check? |
Yes. |
OK, I open it already |
If you have checked it, please leave a message, thank you. Otherwise, the content of the article cannot be accessed normally. |
Related to the
I asked the plugin developer to check this issue. |
Thank you very much |
Sorry, this is a bug. When defining the Embed plugin, the data structure is consistent with the Basic plugin, resulting in other installed plugins being recognized as the Embed plugin. I will make corrections in the next version. If you need to use it urgently and install it from source code, you can temporarily manually make changes to the source code before compiling and installing it. Change the code location: The code changed: func (c *EmbedController) GetEmbedConfig(ctx *gin.Context) {
resp := make([]*schema.GetEmbedOptionResp, 0)
_ = plugin.CallConfig(func(fn plugin.Config) error {
if fn.Info().SlugName == "basic_embed" {
for _, field := range fn.ConfigFields() {
resp = append(resp, &schema.GetEmbedOptionResp{
Platform: field.Name,
Enable: field.Value.(bool),
})
}
return nil
}
return nil
})
handler.HandleResponse(ctx, nil, resp)
} |
Thank you very much, I will modify the source code, compile and install it, and I will test it again. It may take 2 hours. I will leave a message again after testing. |
… conflict. It will be resolved when Answer v1.4.0 release.
… conflict. It will be resolved when Answer v1.4.0 release.
So far it looks like this, I thought it was going to be the same as discourse
The text was updated successfully, but these errors were encountered: