Standard rb
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user