mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Fix favourite handling in ProcessInteractionService
This commit is contained in:
parent
43bb8a25e7
commit
da4b675aca
@ -1,8 +1,3 @@
|
||||
class Auth::SessionsController < Devise::SessionsController
|
||||
layout 'auth'
|
||||
|
||||
def create
|
||||
params[:user].merge!(remember_me: 1)
|
||||
super
|
||||
end
|
||||
end
|
||||
|
@ -11,4 +11,8 @@ class User < ActiveRecord::Base
|
||||
def admin?
|
||||
self.admin
|
||||
end
|
||||
|
||||
def remember_me
|
||||
(super == nil) ? '1' : super
|
||||
end
|
||||
end
|
||||
|
@ -61,6 +61,9 @@ class ProcessFeedService < BaseService
|
||||
end
|
||||
else
|
||||
# What to do about remote user?
|
||||
# Are we supposed to do a search in the database by URL?
|
||||
# We could technically open the URL, look for LRDD tags, get webfinger that way,
|
||||
# finally acquire the acct:username@domain form, and then check DB
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -176,8 +179,4 @@ class ProcessFeedService < BaseService
|
||||
def update_remote_profile_service
|
||||
@update_remote_profile_service ||= UpdateRemoteProfileService.new
|
||||
end
|
||||
|
||||
def fan_out_on_write_service
|
||||
@fan_out_on_write_service ||= FanOutOnWriteService.new
|
||||
end
|
||||
end
|
||||
|
@ -77,7 +77,7 @@ class ProcessInteractionService < BaseService
|
||||
end
|
||||
|
||||
def activity_id(xml)
|
||||
xml.at_xpath('./activity:object/xmlns:id').content
|
||||
xml.at_xpath('//activity:object/xmlns:id').content
|
||||
end
|
||||
|
||||
def salmon
|
||||
|
Loading…
Reference in New Issue
Block a user