Fixed line detection.
This commit is contained in:
parent
c8f329d9c0
commit
fa051a2c75
2 changed files with 3 additions and 2 deletions
|
@ -52,10 +52,11 @@ class Transaction::SignatureDetection
|
||||||
return if !user
|
return if !user
|
||||||
return if !user.preferences
|
return if !user.preferences
|
||||||
return if !user.preferences[:signature_detection]
|
return if !user.preferences[:signature_detection]
|
||||||
article.preferences[:signature_detection] = SignatureDetection.find_signature_line_by_article(
|
line = SignatureDetection.find_signature_line_by_article(
|
||||||
user,
|
user,
|
||||||
article
|
article
|
||||||
)
|
)
|
||||||
|
article.preferences[:signature_detection] = line
|
||||||
article.save
|
article.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ returns
|
||||||
|
|
||||||
=end
|
=end
|
||||||
|
|
||||||
def find_signature_line_by_article(user, article)
|
def self.find_signature_line_by_article(user, article)
|
||||||
return if !user.preferences[:signature_detection]
|
return if !user.preferences[:signature_detection]
|
||||||
SignatureDetection.find_signature_line(
|
SignatureDetection.find_signature_line(
|
||||||
user.preferences[:signature_detection],
|
user.preferences[:signature_detection],
|
||||||
|
|
Loading…
Reference in a new issue