Follow call on locked account creates follow request instead
Reflect "requested" relationship in API and UI Reflect inability of private posts to be reblogged in the UI Disable Webfinger for locked accounts
This commit is contained in:
@ -6,7 +6,7 @@ class ReblogService < BaseService
|
||||
# @param [Status] reblogged_status Status to be reblogged
|
||||
# @return [Status]
|
||||
def call(account, reblogged_status)
|
||||
raise ActiveRecord::RecordInvalid if reblogged_status.private_visibility?
|
||||
raise Mastodon::NotPermitted if reblogged_status.private_visibility?
|
||||
|
||||
reblog = account.statuses.create!(reblog: reblogged_status, text: '')
|
||||
|
||||
|
Reference in New Issue
Block a user