Add sign? methods to the Quote and CollectionItem models (#39047)

This commit is contained in:
Shlee
2026-06-09 22:19:42 +09:30
committed by GitHub
parent fba4775ef6
commit a2064d4c7f
2 changed files with 8 additions and 0 deletions

View File

@@ -64,6 +64,10 @@ class CollectionItem < ApplicationRecord
:featured_item
end
def sign?
true
end
private
def set_position

View File

@@ -79,6 +79,10 @@ class Quote < ApplicationRecord
ActivityPub::QuoteRefreshWorker.perform_in(rand(REFRESH_DEADLINE), id)
end
def sign?
true
end
private
def reset_parent_cache!