Do not PuSH-subscribe to remote accounts when creating them for salmon
This commit is contained in:
parent
784b9cca6a
commit
10eb47a33e
3 changed files with 19 additions and 8 deletions
|
@ -31,10 +31,12 @@ class ProcessFeedService
|
|||
|
||||
def add_reblog!(entry, status)
|
||||
status.reblog = find_original_status(entry, target_id(entry))
|
||||
status.save! unless status.reblog.nil?
|
||||
end
|
||||
|
||||
def add_reply!(entry, status)
|
||||
status.thread = find_original_status(entry, thread_id(entry))
|
||||
status.save! unless status.thread.nil?
|
||||
end
|
||||
|
||||
def find_original_status(xml, id)
|
||||
|
@ -54,7 +56,8 @@ class ProcessFeedService
|
|||
end
|
||||
|
||||
def fetch_remote_status(xml, id)
|
||||
# todo
|
||||
url = xml.at_xpath('./link[@rel="self"]').attribute('href').value
|
||||
nil
|
||||
end
|
||||
|
||||
def local_id?(id)
|
||||
|
@ -100,4 +103,8 @@ class ProcessFeedService
|
|||
rescue
|
||||
:post
|
||||
end
|
||||
|
||||
def follow_remote_account_service
|
||||
FollowRemoteAccountService.new
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue