Issues with embedding from RSS

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! :smile:

We will take a look, @eviltrout is working on improved embedding for this release.

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).

Feed is https://ind.ie/rss with items structured like:

<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>&lt;p&gt;This week we&apos;re going to dive straight into the activities of those cheeky corporations. There&apos;s so much to share!&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://ind.ie/blog/the-social-web-a-glorious-dystopia/&quot;&gt;Read the full post on the Ind.ie blog&lt;/a&gt;.&lt;/p&gt;</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 :smile:

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.

Hi!

I also have issues with embedding RSS.

These are my settings:

Yet all my RSS posts ends up in the category “Uncategorized”. Have I done something wrong here?

Steps to repdocude:

  1. Create an embedded feed (in this case from svedala.se)
  2. Set the real RSS address in the settings (not just the …/nyheter/)
  3. Post as discobot
  4. Set 5 minutes polling interval
  5. Wait 10(!) minutes for it ti poll
  6. See that posts are posted in “Uncategorized”

Das gleiche Problem hier.
Ich habe es bereits mehrfach versucht, dieses Plugin zum Laufen zu bringen.
Alle Themen werden in der Kategorie „Nicht kategorisiert

Entschuldige bitte die verspätete Antwort darauf. Die Kategorie, in die RSS-Feed-Einträge gepostet werden, basiert auf der Domain, die im link-Attribut des Feed-Eintrags verwendet wird. Sie basiert nicht auf der Domain des RSS-Feeds selbst. Wenn sich dein RSS-Feed beispielsweise unter www.example.com befindet, aber das link-Attribut in deinem RSS-Feed auf blog.example.com verweist, musst du die Kategorie für den Feed festlegen, indem du einen Host-Eintrag für blog.example.com hinzufügst.

Sollten Nutzer auf Probleme mit RSS-Kategorien stoßen, die mit dem oben genannten Ansatz nicht gelöst werden können, lass es uns bitte wissen. Wir werden dann untersuchen, was genau los ist.

Ich werde den Text aktualisieren, der von dem Plugin verwendet wird, um klarzustellen, wie Kategorien für die Beiträge des Feeds festgelegt werden.

Das muss behoben werden. Das Plugin sollte keine neuen Themen aus dem RSS-Feed erstellen, wenn es deaktiviert ist. Vorläufig kannst du die Erstellung neuer Themen verhindern, indem du den Host-Eintrag löschst, den du für die Domain des Plugins eingerichtet hast.

@simon

Entschuldigung, falls ich unklar war. Die vollständige URL lautet: Nyheter

Wenn ich Ihren RSS-Feed betrachte, verwenden die link-Attribute der Feed-Elemente die Domain www.svedala.se. Der Host-Eintrag in Ihrem Screenshot gehört zur Domain svedala.se. Versuchen Sie, einen Host-Eintrag für www.svedala.se hinzuzufügen und seine Kategorie auf RSS zu setzen. Können Sie uns bitte mitteilen, ob die Beiträge weiterhin nicht in der richtigen Kategorie erscheinen, nachdem Sie diese Änderung vorgenommen haben?

Eine Sache, die ich noch bestätigen muss, ist, ob Sie einen Host-Eintrag für die Domain des RSS-Feeds erstellen müssen oder ob Host-Einträge nur für die Domains hinzugefügt werden müssen, die in den link-Attributen des Feeds verwendet werden. Ich werde dies auf meiner eigenen Website testen und mich hiermit wieder melden.

Okay, so this is the current setting:

Does that look more accurate to you?

Die Domain, die Sie im Abschnitt „Erlaubte Hosts

Vielen Dank für Ihre Aufmerksamkeit. Ich lasse es noch eine Weile laufen und melde mich dann wieder bei Ihnen. :+1:

Hallo, ich habe das gemacht. Ich erhalte jedoch weiterhin Feeds in der Kategorie „Nicht kategorisiert".
RSS-Polling-Plugin deaktiviert.
Einbettung ist komplett leer und fordert mich auf, einen Host hinzuzufügen.

Oh nein. Wir werden das Plugin so aktualisieren, dass bei einer vollständigen Deaktivierung keine Themen mehr aus dem Feed erstellt werden.

Ich habe eine Korrektur für dieses Problem in das Plugin-Repository hochgeladen. Der Code wird geprüft und hoffentlich bald in das Plugin übernommen.

Bis dahin war mein Rat, das Feed zu deaktivieren, falsch. Um zu verhindern, dass Feed-Themen erstellt werden, musst du das Plugin erneut aktivieren und dann auf den Link „RSS-Abfrage-Einstellungen

Hallo Simon, danke.

Ich bin mir noch nicht ganz sicher.
Hast du die Feeds, die in die Kategorie „Uncategorised“ gehen, behoben, oder die Feeds, die nicht aufhören?

[quote=“geoff777, Beitrag: 21, Thema: 31358”]
Hast du das Problem behoben, dass Feeds in die Kategorie „Nicht kategorisiert