Skip to content

Commit

Permalink
fix notification text for "...that linked to..."
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Dec 29, 2014
1 parent 1dee94f commit dba622b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/webmention_processor.rb
Expand Up @@ -106,14 +106,14 @@ def process_mention(username, source, target, protocol)

elsif repost_of = get_referenced_url(entry, 'repost_of') or repost_of = get_referenced_url(entry, 'repost')
phrase = (twitter ? 'retweeted a tweet' : 'reshared a post')
if (repost_of.respond_to? :include and !repost_of.include? target) or repost_of.to_s != target
if repost_of.respond_to? :include and !repost_of.include? target
phrase += " that linked to"
end
link.type = "repost"

elsif like_of = get_referenced_url(entry, 'like_of') or like_of = get_referenced_url(entry, 'like')
phrase = (twitter ? 'favorited a tweet' : gplus ? '+1ed a post' : 'liked a post')
if (like_of.respond_to? :include and !like_of.include? target) or like_of.to_s != target
if like_of.respond_to? :include and !like_of.include? target
phrase += " that linked to"
end
link.type = "like"
Expand All @@ -124,7 +124,7 @@ def process_mention(username, source, target, protocol)
else
phrase = "commented '#{snippet}' on a post"
end
if (in_reply_to.respond_to? :include and !in_reply_to.include? target) or in_reply_to.to_s != target
if in_reply_to.respond_to? :include and !in_reply_to.include? target
puts "in reply to URL is different from the target: #{in_reply_to}"
phrase += " that linked to"
end
Expand Down

0 comments on commit dba622b

Please sign in to comment.