Fix reply mentions
This commit is contained in:
@@ -11,19 +11,20 @@ module Adamantium
|
|||||||
source = post_url
|
source = post_url
|
||||||
links = link_finder.call(post_content)
|
links = link_finder.call(post_content)
|
||||||
links.each do |target|
|
links.each do |target|
|
||||||
HTTParty.post(settings.webmention_url, {
|
HTTParty.post(URI(settings.webmention_url), {
|
||||||
token: settings.webmention_token,
|
token: settings.webmention_token,
|
||||||
source: source,
|
source: source,
|
||||||
target: target
|
target: target.to_s
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
links = link_finder.call(in_reply_to)
|
links = link_finder.call(in_reply_to)
|
||||||
links.each do |target|
|
links.map do |target|
|
||||||
HTTParty.post(settings.webmention_url, {
|
puts [target.to_s, source]
|
||||||
|
HTTParty.post(URI(settings.webmention_url), {
|
||||||
token: settings.webmention_token,
|
token: settings.webmention_token,
|
||||||
source: source,
|
source: source,
|
||||||
target: target
|
target: target.to_s
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -21,9 +21,9 @@ article class="h-entry"
|
|||||||
div class=""
|
div class=""
|
||||||
em = "In reply to: "
|
em = "In reply to: "
|
||||||
- if reply_in_context
|
- if reply_in_context
|
||||||
a class="no-underline bg-pink-50 hover:bg-pink-100 dark:bg-pink-600 hover:dark:bg-pink-900 p-1 rounded" href=post.in_reply_to #{reply_in_context.display_title}
|
a class="u-in-reply-to no-underline bg-pink-50 hover:bg-pink-100 dark:bg-pink-600 hover:dark:bg-pink-900 p-1 rounded" href=post.in_reply_to #{reply_in_context.display_title}
|
||||||
- else
|
- else
|
||||||
a class="no-underline bg-pink-50 hover:bg-pink-100 dark:bg-pink-600 hover:dark:bg-pink-900 p-1 rounded" href=post.in_reply_to #{post.in_reply_to}
|
a class="u-in-reply-to no-underline bg-pink-50 hover:bg-pink-100 dark:bg-pink-600 hover:dark:bg-pink-900 p-1 rounded" href=post.in_reply_to #{post.in_reply_to}
|
||||||
nav class="space-x-1 text-sm md:text-sm md:block dark:text-gray-600"
|
nav class="space-x-1 text-sm md:text-sm md:block dark:text-gray-600"
|
||||||
- if post.location || post.photos? || post.videos?
|
- if post.location || post.photos? || post.videos?
|
||||||
span See more:
|
span See more:
|
||||||
|
Reference in New Issue
Block a user