mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-15 16:04:48 +00:00
This allows users to share a static page of an AI conversation with the rest of the world. By default this feature is disabled, it is enabled by turning on ai_bot_allow_public_sharing via site settings Precautions are taken when sharing 1. We make a carbonite copy 2. We minimize work generating page 3. We limit to 100 interactions 4. Many security checks - including disallowing if there is a mix of users in the PM. * Bonus commit, large PRs like this PR did not work with github tool large objects would destroy context Co-authored-by: Martin Brennan <martin@discourse.org>
9 lines
203 B
JavaScript
9 lines
203 B
JavaScript
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default DiscourseRoute.extend({
|
|
beforeModel(transition) {
|
|
window.location = transition.intent.url;
|
|
transition.abort();
|
|
},
|
|
});
|