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.
Mesmo problema aqui.
Já tentei várias vezes fazer este plugin funcionar.
Todos os tópicos são criados na categoria “sem categoria”.
Desativei o plugin e ele continua funcionando!
Estou cansado de excluir tópicos.
Pode ser que sejam os mesmos feeds antigos, pois estou começando a reconhecer os títulos que já excluí 5 vezes.
Preciso editar o app.yml e reconstruir para desativar o plugin?
Preferia que funcionasse como esperado, pois seria muito útil.
Alguém conseguiu fazê-lo funcionar com categorias?
Desculpe a resposta tardia a isso. A categoria para onde os itens do feed RSS são postados é baseada no domínio usado no atributo link do item do feed. Não é baseada no domínio do feed RSS. Por exemplo, se o seu feed RSS estiver em www.example.com, mas o atributo link no seu feed RSS estiver apontando para blog.example.com, você deve definir a categoria para o feed adicionando uma entrada de host para blog.example.com.
Se as pessoas estiverem enfrentando problemas com categorias RSS que não podem ser resolvidos com a abordagem acima, avise-nos e investigaremos o que está acontecendo.
Vou atualizar o texto usado pelo plugin para deixar claro como definir categorias para as postagens do feed.
Isso precisa ser corrigido. O plugin não deve continuar criando tópicos a partir do feed RSS quando estiver desativado. Por enquanto, você deve poder impedir a criação de tópicos excluindo a entrada de host que configurou para o domínio do plugin.
Quando olho para o seu feed RSS, os atributos link dos itens do feed estão usando o domínio www.svedala.se. O registro de host na sua captura de tela é para o domínio svedala.se. Tente adicionar um registro de host para www.svedala.se e definir sua categoria como RSS. Poderia nos informar se ainda assim não for postado na categoria correta após essa alteração?
Uma coisa que preciso confirmar é se você precisa criar um registro de host para o domínio do feed RSS ou se os registros de host só precisam ser adicionados para os domínios usados nos atributos link do feed. Vou testar isso no meu próprio site e retornar aqui com o resultado.
O domínio que você configurou na seção de Hospitais Permitidos parece correto. No entanto, acredito que a configuração de Lista de Permissões de Caminho esteja incorreta. O objetivo dessa configuração é permitir que você publique posts em diferentes caminhos do seu site em categorias específicas do Discourse. Você pode deixar a configuração em branco se quiser publicar todos os posts de www.svedala.se na sua categoria RSS.
Se você quiser que caminhos diferentes do domínio publiquem em categorias diferentes do Discourse, o caminho que você adicionar deve terminar com um símbolo de curinga. Por exemplo, /paverka/nyheter/.*
Olá, fiz isso. Ainda estou recebendo feeds na categoria “sem categoria”.
Plugin de Polling RSS desativado.
Incorporação completamente vazia e pedindo para que eu adicione um host.
Empurrei uma correção para esse problema no repositório do plugin. Esse código será revisado e, esperamos, adicionado ao plugin em breve.
Por enquanto, o conselho que dei a você sobre desativar o feed estava errado. Para evitar que tópicos de feed sejam criados, você precisa reativar o plugin e, em seguida, acessar o link de configurações de Polling RSS. Nessa página, exclua a URL do Feed que você inseriu.
Corrigi o problema em que os feeds não paravam quando o plugin era desativado. Também atualizei o texto exibido pelo plugin ao definir uma URL de Feed, para deixar claro como definir a categoria para os tópicos de um feed. A categoria para a qual um feed é publicado é baseada no domínio dos atributos link do feed. Isso não é algo que possa ser alterado.
O PR que criei ainda não foi mesclado. Mas deve estar disponível em breve.