Skip to content

Commit

Permalink
I seemed to be missing some titles when posts came through as links
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongustafson committed Oct 6, 2018
1 parent 12438ca commit e2ff131
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/jekyll/webmention_io/webmention_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,18 @@ def determine_title

# cleanup
title = title.gsub(/<\/?[^>]+?>/, "")
elsif @type == "link" && @source != "twitter"

name = @raw.dig("data", "name")
title = name if name

end # if post

markdownify(title)
if title
markdownify(title)
else
title
end
end

def determine_content
Expand Down

0 comments on commit e2ff131

Please sign in to comment.