mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Add support for local quote stamps (#35626)
This commit is contained in:
parent
483da67204
commit
591df1f205
18 changed files with 241 additions and 16 deletions
|
|
@ -37,6 +37,7 @@ class Quote < ApplicationRecord
|
|||
before_validation :set_accounts
|
||||
before_validation :set_activity_uri, only: :create, if: -> { account.local? && quoted_account&.remote? }
|
||||
validates :activity_uri, presence: true, if: -> { account.local? && quoted_account&.remote? }
|
||||
validates :approval_uri, absence: true, if: -> { quoted_account&.local? }
|
||||
validate :validate_visibility
|
||||
|
||||
def accept!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue