# Helping with RSS issue

**URL:** https://meta.discourse.org/t/helping-with-rss-issue/55767
**Category:** Marketplace
**Created:** [January 14, 2017, 3:46pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767 "2017-01-14T15:46:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [January 14, 2017, 3:46pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/1 "2017-01-14T15:46:16Z")

</div>

Hey guys,

Need someone to help me with RSS with our Persian Forum.  
The language tag for RSS is fa\_IR which is wrong and RSS Validator does not validate.  
See here: [Feed Validator Results: https://forums.7host.ir/latest.rss](http://bit.ly/2idlnhG)

The code for language must be fa-IR  
note: Dash `(-)` instead of Underline `(_)`

Here is my previous topic that couldn’t find solution and can be useful to track the actual problem:

> [@Problem in latest.rss / Not a Valid Feed, it says!](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466):
>
> Hey guys, My rss cannot be validated. See here: [Feed Validator Results: https://forums.7host.ir/latest.rss](http://bit.ly/2idlnhG) I am getting some errors when i am trying to fetch the latest entries to another website and the feed validator does not qualify this as a valid feed/rss link. I have installed discourse in the traditional way. Any ideas?

Budget $20 USD (Can pay via Paypal or pay at your gateway)

Thank you

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 5:53pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/2 "2017-01-14T17:53:18Z")

</div>

Hey @Arta_S,

I replied to your existing topic, as it really seems this is an issue within Discourse.

> [@Problem in latest.rss / Not a Valid Feed, it says!](https://meta.discourse.org/t/problem-in-latest-rss-not-a-valid-feed-it-says/55466/24):
>
> @codinghorror, I can now confirm this is happening due to the default locale being changed in Admin \> Settings. When I select Persian, it adds the \<language\>fa\_IR\</language\> to the RSS feed output. Switching it back to English, puts it back to \<language\>en\</language\>. Based on [List of ISO 639-1 codes - Wikipedia](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes), it seems the appropriate code for Persian is simply fa, I’m not sure why \_IR is being appended to it. When I take the RSS output and plug it directly into the validator, changing fa\_I…

I went into quite a bit of detail, but unfortunately, I’m not 100% sure what the correct solution is here.

Will watch to see how this progresses.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [January 14, 2017, 6:01pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/3 "2017-01-14T18:01:04Z")

</div>

> [@cpradio](#):
>
> I replied to your existing topic, as it really seems this is an issue within Discourse.
> 
> Problem in latest.rss / Not a Valid Feed, it says!

Thanks mate I appreciate the effort you are under taken.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 7:00pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/4 "2017-01-14T19:00:54Z")

</div>

Looks like it is in two possible files

> <https://github.com/discourse/discourse/blob/main/app/views/list/list.rss.erb#L4>

And

> <https://github.com/discourse/discourse/blob/main/app/views/topics/show.rss.erb#L5>

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 7:26pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/5 "2017-01-14T19:26:37Z")

</div>

PR Submitted  
[https://github.com/discourse/discourse/pull/4653](https://github.com/discourse/discourse/pull/4653)

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [January 14, 2017, 7:40pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/6 "2017-01-14T19:40:57Z")

</div>

> [@cpradio](#):
>
> Looks like it is in two possible files

Shouldn’t this be at /var/discourse/app ?  
I am looking through sftp and can’t seem find the folder app inside discourse folder.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 7:45pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/7 "2017-01-14T19:45:53Z")

</div>

You won’t. As you would have to enter the container to see the files using `./launcher enter app`, but all that would be for nothing. As you’d have to rebuild the container to use the alterations, and that will undo any alterations. You simply need to wait for my PR to get merged into master, and once that happens it will be roughly 30 minutes and it should appear in tests-passed.

The Build just completed for the PR, all tests continue to pass, so it shouldn’t be long for it to get merged. I’m off to run a sound event for the rest of the night (so I won’t be available anymore today).

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [January 14, 2017, 7:57pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/8 "2017-01-14T19:57:20Z")

</div>

Superb! Thanks man  
I will wait for the update then.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [January 14, 2017, 9:05pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/9 "2017-01-14T21:05:22Z")

</div>

Zogstrip merged it. Keep an eye on /admin/upgrade to pull it in.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 13, 2017, 9:05pm UTC](https://meta.discourse.org/t/helping-with-rss-issue/55767/10 "2017-02-13T21:05:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
