[Pools] Always disallow duplicate posts

20 pools have this, 18 of those by accident. Series/collection distinction makes little sense for e6
This commit is contained in:
Earlopain 2024-02-24 19:05:48 +01:00
parent d4083e1410
commit b02b2353e7
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -145,14 +145,6 @@ class Pool < ApplicationRecord
PoolVersion.where("pool_id = ?", id).order("id asc")
end
def is_series?
category == "series"
end
def is_collection?
category == "collection"
end
def normalize_name
self.name = Pool.normalize_name(name)
end
@ -166,7 +158,7 @@ class Pool < ApplicationRecord
end
def normalize_post_ids
self.post_ids = post_ids.uniq if is_collection?
self.post_ids = post_ids.uniq
end
def revert_to!(version)