This commit is contained in:
2023-11-15 08:05:18 +11:00
parent 74c766ee01
commit 730ecb9ea4
3 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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|