hunk.code_window:         if (data.author_name || data.author_icon) {
               if (data.author_icon) {
                   author.push(
                       <img
                           className='attachment__author-icon'
                           crossOrigin='anonymous'
                           src={data.author_icon}
                           key={'attachment__author-icon'}
                           height='14'
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.file_path: webapp/components/post_view/components/post_attachment.jsx
hunk.type: replace
file: // Copyright 2014 The Go Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style
  // license that can be found in the LICENSE file.
  
  // +build darwin dragonfly freebsd linux netbsd openbsd
  
  package test
  
  import (
  	"bytes"
  	"testing"
  
  	"golang.org/x/crypto/ssh"
  	"golang.org/x/crypto/ssh/agent"
  )
  
  func TestAgentForward(t *testing.T) {
  	server := newServer(t)
  	defer server.Shutdown()
  	conn := server.Dial(clientConfig())
  	defer conn.Close()
  
  	keyring := agent.NewKeyring()
  	if err := keyring.Add(agent.AddedKey{PrivateKey: testPrivateKeys["dsa"]}); err != nil {
  		t.Fatalf("Error adding key: %s", err)
  	}
  	if err := keyring.Add(agent.AddedKey{
  		PrivateKey:       testPrivateKeys["dsa"],
  		ConfirmBeforeUse: true,
  		LifetimeSecs:     3600,
  	}); err != nil {
  		t.Fatalf("Error adding key with constraints: %s", err)
  	}
  	pub := testPublicKeys["dsa"]
  
  	sess, err := conn.NewSession()
  	if err != nil {
  		t.Fatalf("NewSession: %v", err)
  	}
  	if err := agent.RequestAgentForwarding(sess); err != nil {
  		t.Fatalf("RequestAgentForwarding: %v", err)
  	}
  
  	if err := agent.ForwardToAgent(conn, keyring); err != nil {
  		t.Fatalf("SetupForwardKeyring: %v", err)
  	}
  	out, err := sess.CombinedOutput("ssh-add -L")
  	if err != nil {
  		t.Fatalf("running ssh-add: %v, out %s", err, out)
  	}
  	key, _, _, _, err := ssh.ParseAuthorizedKey(out)
  	if err != nil {
  		t.Fatalf("ParseAuthorizedKey(%q): %v", out, err)
  	}
  
  	if !bytes.Equal(key.Marshal(), pub.Marshal()) {
  		t.Fatalf("got key %s, want %s", ssh.MarshalAuthorizedKey(key), ssh.MarshalAuthorizedKey(pub))
  	}
  }
  