PluginProbe
wpForo Forum / 3.2.0
wpForo Forum v3.2.0
3.2.1 3.2.0 3.1.7 3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 All 141 releases
← All changes | assets/js/ai-chatbot.js +2 -2 3.0.7 → 3.2.0 View file →
@@ -404,14 +404,14 @@
404 404 if (sourceUrl) {
405 405 var postId = source.post_id || '';
406 406 var title = source.title || wpforo_phrase('View topic');
407 407 var isWordPress = source.content_source === 'wordpress';
408 - // Format: [icon 123] for WordPress, [123] for forum
408 + // Format: Title [icon 123] for WordPress, Title [123] for forum
409 409 var wpIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" style="fill:transparent; margin: 0 1px; width: 13px; height: 13px;" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="vertical-align:-2px;margin-right:2px"><path d="M4 4h16v16H4z"/><path d="M8 8h8"/><path d="M8 12h8"/><path d="M8 16h5"/></svg>';
410 410 var idPrefix = isWordPress ? wpIcon : '';
411 411 sourcesHtml += '<a href="' + escapeHtml(sourceUrl) + '" class="wpf-ai-chat-msg-source" target="_blank">';
412 - sourcesHtml += postId ? '[' + idPrefix + escapeHtml(postId) + '] ' : '';
413 412 sourcesHtml += escapeHtml(title);
413 + sourcesHtml += postId ? ' [' + idPrefix + escapeHtml(postId) + ']' : '';
414 414 sourcesHtml += '</a>';
415 415 }
416 416 });
417 417 // Only add sources section if we have valid source links