mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 10:05:36 +08:00
Helper to add a number to quoted_post_numbers
This commit is contained in:
parent
3dfc034e8d
commit
d7219a6fbc
@ -488,4 +488,9 @@ class Post < ActiveRecord::Base
|
|||||||
args
|
args
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def add_to_quoted_post_numbers(num)
|
||||||
|
return unless num.present?
|
||||||
|
self.quoted_post_numbers ||= []
|
||||||
|
self.quoted_post_numbers << num
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user