html.ex: optimize external url extraction
authorrinpatch <rinpatch@sdf.org>
Wed, 2 Sep 2020 09:42:25 +0000 (12:42 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 2 Sep 2020 09:45:20 +0000 (12:45 +0300)
commit46236d1d873473d95b11cd7bfdcaa284ea55a9ad
tree027c393ebf76ba5f5b13fbd30879175987efb080
parent47ff425cfd53212aba26e9eba86de16e3ef1442b
html.ex: optimize external url extraction

By using a :not() selector and only extracting attributes from the
first match.
lib/pleroma/html.ex