diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-09 20:04:34 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-09 20:04:34 +0200 |
commit | 3cc47beb6e1f646baca64fdf56168e2f2e2bc726 (patch) | |
tree | 295d9442bec8fa7434b6a2c37a6cb835a3725dfd /app/services/process_interaction_service.rb | |
parent | 735b4cc62e3fb9ef7a10b657c8e437ac0cb3d1fe (diff) |
Refactored generation of unique tags, URIs and object URLs into own classes,
as well as formatting of content
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r-- | app/services/process_interaction_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb index 536911e2f..d9fcf9032 100644 --- a/app/services/process_interaction_service.rb +++ b/app/services/process_interaction_service.rb @@ -45,7 +45,7 @@ class ProcessInteractionService < BaseService end def mentions_account?(xml, account) - xml.xpath('/xmlns:entry/xmlns:link[@rel="mentioned"]').each { |mention_link| return true if mention_link.attribute('href').value == url_for_target(account) } + xml.xpath('/xmlns:entry/xmlns:link[@rel="mentioned"]').each { |mention_link| return true if mention_link.attribute('href').value == TagManager.instance.url_for(account) } false end @@ -85,7 +85,7 @@ class ProcessInteractionService < BaseService end def status(xml) - Status.find(unique_tag_to_local_id(activity_id(xml), 'Status')) + Status.find(TagManager.instance.unique_tag_to_local_id(activity_id(xml), 'Status')) end def activity_id(xml) |