Do not run FetchLinkCardService on local URLs, increase file size limit to 8MB,
fix ProcessFeedService pushing status into distribution if called a second time while the first is still running (i.e. when a PuSH comes after a Salmon slap), fix not running escape on spoiler text before emojify
This commit is contained in:
parent
9f57c7d4a6
commit
450ad43180
5 changed files with 21 additions and 13 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
class FetchLinkCardService < BaseService
|
||||
def call(status)
|
||||
# Get first URL
|
||||
url = URI.extract(status.text).reject { |uri| (uri =~ /\Ahttps?:\/\//).nil? }.first
|
||||
# Get first http/https URL that isn't local
|
||||
url = URI.extract(status.text).reject { |uri| (uri =~ /\Ahttps?:\/\//).nil? || TagManager.instance.local_url?(uri) }.first
|
||||
|
||||
return if url.nil?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue