Commit 39ad2a1203803cf1e9eb92ce4a5605fb71e36be1
1 parent
6738f312
Exists in
staging
and in
42 other branches
ActionItem1049: don't copy feeds from templates
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/profile.rb
| @@ -437,6 +437,7 @@ class Profile < ActiveRecord::Base | @@ -437,6 +437,7 @@ class Profile < ActiveRecord::Base | ||
| 437 | end | 437 | end |
| 438 | 438 | ||
| 439 | def copy_article_tree(article, parent=nil) | 439 | def copy_article_tree(article, parent=nil) |
| 440 | + return if article.is_a?(RssFeed) | ||
| 440 | original_article = self.articles.find_by_name(article.name) | 441 | original_article = self.articles.find_by_name(article.name) |
| 441 | if original_article | 442 | if original_article |
| 442 | num = 2 | 443 | num = 2 |