diff --git a/app/views/feeds/rss.rb b/app/views/feeds/rss.rb index 776ebdd..fade9cf 100644 --- a/app/views/feeds/rss.rb +++ b/app/views/feeds/rss.rb @@ -8,7 +8,7 @@ module Adamantium expose :posts do post_repo.for_rss.map do |post| - post.post_type == "bookmark" ? + (post.post_type == "bookmark") ? Decorators::Bookmarks::Decorator.new(post) : Decorators::Posts::Decorator.new(post) end diff --git a/slices/admin/commands/posts/de_syndicate.rb b/slices/admin/commands/posts/de_syndicate.rb index 6fb1ee1..defd179 100644 --- a/slices/admin/commands/posts/de_syndicate.rb +++ b/slices/admin/commands/posts/de_syndicate.rb @@ -12,9 +12,9 @@ module Admin post = post_repo.find(id: post_id) request = if target.to_sym == :mastodon - masto_id = post.syndication_sources[target].split("/").last - mastodon.de_syndicate(post_id: masto_id) - end + masto_id = post.syndication_sources[target].split("/").last + mastodon.de_syndicate(post_id: masto_id) + end if request.success? post.syndication_sources.delete(target)