<p dir="auto">custom lookup to use with <code class="notranslate">before_action</code>, similar to</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/7054cea48ee9728c155334b48777a5f25db89af8/app/controllers/user_blocks_controller.rb#L114">https://github.com/openstreetmap/openstreetmap-website/blob/7054cea48ee9728c155334b48777a5f25db89af8/app/controllers/user_blocks_controller.rb#L114</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4193'>https://github.com/openstreetmap/openstreetmap-website/pull/4193</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4193/commits/9f00e6b20c3249d724def8ab32d79730fe659fd1" class="commit-link">9f00e6b</a> Lookup friend user before make/remove friend action</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4193/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4193/files#diff-61b51a87bb7b543e822aff82b71b37c768520f25fa60664aee9bb4e56af797ff">app/controllers/friendships_controller.rb</a>
(74)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4193/files#diff-df9314c4dddac4662ed77bc17f41309207843ae37a3512395e53974224d2dcd9">app/views/friendships/make_friend.html.erb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4193.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4193.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4193.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4193.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4193">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKEWX3L5P6YKE2UNRDXWK273ANCNFSM6AAAAAA3XVIIGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKEZO23IDPJ74KGEL3XWK273A5CNFSM6AAAAAA3XVIIGSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHG5RHGE4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4193</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4193",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4193",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>