Fix some nil errors (#3338)
* Fix nil input not handled well in AuthorExtractor concern * Fix hard error in ProcessFeedService when replied-to status has been deleted * Fix nil errors in ProcessInteractionService when favourited status cannot be found
This commit is contained in:
parent
bd21afb5ed
commit
44cb08297c
3 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
module AuthorExtractor
|
||||
def author_from_xml(xml)
|
||||
return nil if xml.nil?
|
||||
|
||||
# Try <email> for acct
|
||||
acct = xml.at_xpath('./xmlns:author/xmlns:email', xmlns: TagManager::XMLNS)&.content
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue