Add sign? methods to the Quote and CollectionItem models (#39047)
This commit is contained in:
parent
fba4775ef6
commit
a2064d4c7f
@ -64,6 +64,10 @@ class CollectionItem < ApplicationRecord
|
|||||||
:featured_item
|
:featured_item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sign?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_position
|
def set_position
|
||||||
|
|||||||
@ -79,6 +79,10 @@ class Quote < ApplicationRecord
|
|||||||
ActivityPub::QuoteRefreshWorker.perform_in(rand(REFRESH_DEADLINE), id)
|
ActivityPub::QuoteRefreshWorker.perform_in(rand(REFRESH_DEADLINE), id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sign?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def reset_parent_cache!
|
def reset_parent_cache!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user