Linting
This commit is contained in:
@@ -12,7 +12,7 @@ module Adamantium
|
|||||||
/[a-z]/.match?(grouper) ? grouper : "#"
|
/[a-z]/.match?(grouper) ? grouper : "#"
|
||||||
}
|
}
|
||||||
.sort
|
.sort
|
||||||
.map { |group, tags| {group: group, tags: tags.map {|tag| {tag: tag, count: tag.posts.count} }} }
|
.map { |group, tags| {group: group, tags: tags.map { |tag| {tag: tag, count: tag.posts.count} }} }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -17,10 +17,10 @@ module Adamantium
|
|||||||
end
|
end
|
||||||
|
|
||||||
content = if post[:name]
|
content = if post[:name]
|
||||||
"#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}"
|
"#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}"
|
||||||
else
|
else
|
||||||
"#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}"
|
"#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
credentials = Bskyrb::Credentials.new(settings.blue_sky_username, settings.blue_sky_password)
|
credentials = Bskyrb::Credentials.new(settings.blue_sky_username, settings.blue_sky_password)
|
||||||
session = Bskyrb::Session.new(credentials, settings.blue_sky_url)
|
session = Bskyrb::Session.new(credentials, settings.blue_sky_url)
|
||||||
|
@@ -7,7 +7,7 @@ module Admin
|
|||||||
include Deps["repos.trip_repo", "repos.post_repo"]
|
include Deps["repos.trip_repo", "repos.post_repo"]
|
||||||
|
|
||||||
expose :trip do |id:|
|
expose :trip do |id:|
|
||||||
trip = trip_repo.fetch(id)
|
trip_repo.fetch(id)
|
||||||
end
|
end
|
||||||
|
|
||||||
expose :trip_summary do |trip|
|
expose :trip_summary do |trip|
|
||||||
|
Reference in New Issue
Block a user