From 2e1e38d5c19e8bc344cc99b66bf77aba5206c7e7 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 3 Feb 2024 08:39:18 +1100 Subject: [PATCH] Standard rb --- app/views/feeds/rss.rb | 2 +- slices/admin/commands/posts/de_syndicate.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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)