I’m having a few issues with embedding from RSS. I’m going to enable comments for each original post, but I want to ensure that the comments end up in the right location in Discourse with the correct attributed author and publishing date.
Issue 1: embed username key from feed
I need each topic to be correctly attributed to the right author. I’m set up as the default. My RSS has a format of <discourseUsername>jo</discourseUsername>, so I entered discourseUsername as the value for embed username key from feed. It just attributes all topics to the default user. Have I done something wrong here?
Issue 2: pubdates
I need each topic’s timestamp to be the same as the original post publishing time. Otherwise adding our RSS feed of ~70 posts floods the forum with outdated topics that have recent timestamps. (Pushing newer manually-created topics down.) Is there a way to set the timestamp for topics pulled from RSS to the same time as the RSS <pubdate>?
Issue 3: chronology
Maybe related to Issue 3, the topics imported via RSS are not in the same chronological order as the original posts.
I hope none of these are stupid questions! Any help, suggestions, or workarounds would be much appreciated!
Thanks! It’d also be pretty cool if you could feed different (multiple) RSS feeds into different categories, or put RSS-fed topics into different categories dependent on a key value.
Our use case is that we have a couple of blogs, one “newsy” and one “developer-y”, I’m using a combined RSS feed for now so that we can pull them all into Discourse, but having their separate posts/topics in their own categories would make it easier for audiences who favour one blog or the other.
That looks correct to me. Can you give me a sample of the RSS feed you’re trying to import?
Another option is to use the embed by username site setting if you are okay with all posts coming from the same user.
This is unfortunately not possible right now. The embedding tool was originally meant to be “going forward” so it doesn’t have support for dates via embedding. It’s something we could definitely look at adding. (This is the same as issue 3 as far as I can tell).
<item> <title>The Social Web: A Glorious Dystopia</title> <link>https://ind.ie/blog/the-social-web-a-glorious-dystopia/</link> <guid>https://ind.ie/blog/the-social-web-a-glorious-dystopia/</guid> <description><p>This week we're going to dive straight into the activities of those cheeky corporations. There's so much to share!</p> <p><a href="https://ind.ie/blog/the-social-web-a-glorious-dystopia/">Read the full post on the Ind.ie blog</a>.</p></description> <pubDate>Fri, 24 Jul 2015 18:30:00 GMT</pubDate> <author>laura@ind.ie (Laura Kalbag)</author> <discourseUsername>laura</discourseUsername> </item>
I’ve got the embed by username set to my username, but also got embed username key from feed. Will these conflict? I’d rather have them all assigned to the original author, not just me. Though I write the most blog posts, so having it set to me isn’t a bad default…
That makes sense. We’re going to use it “going forward” now too
It’s not exactly the same as issue 3 (but would have the same solution.) Even though the RSS is imported all at once, the topics are still ordered (because that’s how they’re presented in Discourse.) However it’s unclear what the topics are ordered by, as it’s not the same order as the <item>s in the RSS.
El mismo problema por aquí.
He intentado varias veces hacer que este plugin funcione.
Todos los temas se crean en la categoría sin clasificar.
He desactivado el plugin y sigue funcionando.
Estoy harto de borrar temas.
Podrían ser los mismos feeds antiguos, ya que empiezo a reconocer los títulos que he borrado 5 veces.
¿Tengo que editar el archivo app.yml y reconstruir para detener el plugin?
Preferiría que funcionara como se espera, ya que sería muy útil.
¿Alguien lo tiene funcionando con categorías?
Disculpa la tardanza en responder a esto. La categoría a la que se asignan los elementos del feed RSS se basa en el dominio que se utiliza en el atributo link del elemento del feed, no en el dominio del feed RSS en sí. Por ejemplo, si tu feed RSS está en www.example.com, pero el atributo link de tu feed RSS apunta a blog.example.com, deberás configurar la categoría del feed añadiendo una entrada de host para blog.example.com.
Si alguien tiene problemas con las categorías de RSS que no se pueden solucionar con el enfoque anterior, háznoslo saber y investigaremos qué está ocurriendo.
Actualizaré el texto que utiliza el plugin para aclarar cómo establecer las categorías para las publicaciones del feed.
Esto debe corregirse. El plugin no debería seguir creando temas a partir del feed RSS cuando está desactivado. Por ahora, deberías poder evitar que se creen temas eliminando la entrada de host que has configurado para el dominio del plugin.
Cuando reviso tu feed RSS, los atributos link de los elementos del feed están usando el dominio www.svedala.se. El registro de host en tu captura de pantalla corresponde al dominio svedala.se. Intenta agregar un registro de host para www.svedala.se y establecer su categoría como RSS. ¿Podrías indicarnos si sigue sin publicarse en la categoría correcta después de realizar este cambio?
Una cosa que necesito confirmar es si es necesario crear un registro de host para el dominio del feed RSS o si los registros de host solo deben agregarse para los dominios que se utilizan en los atributos link del feed. Probaré esto en mi propio sitio y te informaré aquí.
El dominio que has configurado en la sección de Hosts Permitidos parece correcto. Sin embargo, creo que la configuración de Lista Blanca de Rutas que tienes es incorrecta. El propósito de esa configuración es permitirte publicar publicaciones que se encuentran en diferentes rutas de tu sitio web en categorías específicas de Discourse. Puedes dejar la configuración en blanco si deseas publicar todas las publicaciones de www.svedala.se en tu categoría RSS.
Si deseas que diferentes rutas del dominio se publiquen en distintas categorías de Discourse, la ruta que agregues debe terminar con un símbolo comodín. Por ejemplo, /paverka/nyheter/.*
Hola, ya lo hice. Aún estoy recibiendo feeds en la categoría sin clasificar.
El plugin de sondeo RSS está desactivado.
La incrustación está completamente vacía y me pide que agregue un host.
He enviado una corrección para este problema al repositorio del plugin. Ese código será revisado y, con suerte, se añadirá al plugin pronto.
Por ahora, el consejo que te di sobre desactivar el feed era incorrecto. Para evitar que se creen temas de feed, debes volver a habilitar el plugin y luego ir al enlace de configuración de RSS Polling. En esa página, elimina la URL del feed que has introducido.
He solucionado el problema por el cual los feeds no se detenían al desactivar el plugin. También he actualizado el texto que muestra el plugin cuando configuras una URL de Feed para aclarar cómo establecer la categoría para los temas de un feed. La categoría a la que se publica un feed se basa en el dominio de los atributos link del feed. Eso no es algo que se pueda cambiar.
La PR que envié aún no ha sido fusionada. Sin embargo, debería estar disponible pronto.