How to disable the 'embed_truncate' setting

AI-generated summary

The discussion revolves around disabling the embed_truncate setting in Discourse. simon initially asked how to deselect this setting as it’s showing even when the full post has been sent. eviltrout explained that the setting can be disabled in the admin section, but it won’t update already imported posts.

eviltrout pointed out that the setting is located in /admin/customize/embedding. However, simon was still experiencing issues, even without adding hosts to the site, as they were publishing posts using the wp-discourse plugin.

eviltrout eventually discovered that the embed_truncate setting was being used by wp-discourse without setting up embedding customizations. The setting has since been un-hidden and is now alterable via site settings in admin/site_settings/category/posting. This change has been committed to GitHub: https://github.com/discourse/discourse/commit/2ce9d3d733e0848c6afd7a29e153e705e635152f.

Is there a way to deselect the embed_truncate setting? The problem is that it’s showing even when the full post has been sent.

You can disable it in the admin section at any time. However, that won’t update posts that were already imported. The only solution to that is to reimport them via the rails console.

Where is the setting for it?

It’s in /admin/customize/embedding with the other embedding options.

I haven’t added any hosts to my site - I’m publishing posts with the wp-discourse plugin - but am still getting this:

I can see how this function could be useful for when a post excerpt is published through the wp-discourse plugin, but could there be a setting added to admin/site_settings/category/posting to make it possible to disable it for sites that are using the wp-discourse plugin to publish full posts to Discourse?

Aha! I didn’t realize that setting was used by wp-discourse without setting up embedding customizations. I’ve un-hidden the setting and it should be alterable via site settings now. (It’s still editable on the embedding tab too.)

https://github.com/discourse/discourse/commit/2ce9d3d733e0848c6afd7a29e153e705e635152f