mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 17:45:41 +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
|
||||
end
|
||||
|
||||
def add_to_quoted_post_numbers(num)
|
||||
return unless num.present?
|
||||
self.quoted_post_numbers ||= []
|
||||
self.quoted_post_numbers << num
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user