<p dir="auto">Dashboard view only outputs its contents if this condition is true:</p>
<div class="highlight highlight-source-ruby" dir="auto"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-en">current_user</span> <span class="pl-k">and</span> <span class="pl-c1">@user</span><span class="pl-kos">.</span><span class="pl-en">id</span> == <span class="pl-en">current_user</span><span class="pl-kos">.</span><span class="pl-en">id</span><span class="pl-k"></span></pre></div>
<p dir="auto">But it's always true. The page is only accessible when authorized, therefore <code class="notranslate">current_user</code> is set. <code class="notranslate">current_user</code> is assigned to <code class="notranslate">@user</code>, so the <code class="notranslate">id</code>s are also always equal. That makes <code class="notranslate">@user</code> unnecessary and the entire check unnecessary.</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/5705'>https://github.com/openstreetmap/openstreetmap-website/pull/5705</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/commits/02d94679394a627574f2a21dd2733455a78b7c43" class="commit-link">02d9467</a>  Initialize dashboard followings and nearby users in controller</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/commits/44c5af236ede61d8c65c629c9e889fb2d35e4e2d" class="commit-link">44c5af2</a>  Remove current user check from dashboard view</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/files">4 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/files#diff-8176f7cf6d68ad6630418f9d9faf7be510e5fb6e5e0bb535fe36efe3ed36bcb5">app/controllers/dashboards_controller.rb</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/files#diff-a893bdff25132b2a60513f4fb74deb7507b568af429e60d05a48c63b7dd95230">app/views/dashboards/_contact.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/files#diff-e390cd3017ea55a29b03a500b95a0203d99769e74ccc353cd2bd8c2bf058ec63">app/views/dashboards/show.html.erb</a>
    (101)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5705/files#diff-36fc67e1b6b8bcf4835a42cb762caa3caa45dce59deb15ba0339e4df1ec1d38c">test/controllers/dashboards_controller_test.rb</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5705.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5705.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5705.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5705.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/5705">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPWFVJWIY5ADCIHZQD2QPKU7AVCNFSM6AAAAABXM63556VHI2DSMVQWIX3LMV43ASLTON2WKOZSHA3DCOJXGYZTMNQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPJWDYYBVEYYW7PUPL2QPKU7A5CNFSM6AAAAABXM63556WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKVFSLFY.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/5705</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/5705",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5705",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>