rel="me" check should be case-insenstive (#32238)
				
					
				
			This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							dbddd40c1c
						
					
				
				
					commit
					7385016837
				
			@@ -46,6 +46,21 @@ RSpec.describe VerifyLinkService do
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    context 'when a link contains an <a rel=ME> back' do
 | 
			
		||||
      let(:html) do
 | 
			
		||||
        <<~HTML
 | 
			
		||||
          <!doctype html>
 | 
			
		||||
          <body>
 | 
			
		||||
            <a href="#{ActivityPub::TagManager.instance.url_for(account)}" rel=ME>Follow me on Mastodon</a>
 | 
			
		||||
          </body>
 | 
			
		||||
        HTML
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      it 'marks the field as verified' do
 | 
			
		||||
        expect(field.verified?).to be true
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    context 'when a link contains a <link> back' do
 | 
			
		||||
      let(:html) do
 | 
			
		||||
        <<~HTML
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user