From 56e036b4de1b3d92c0de3f18a0b3ada707ba4c2f Mon Sep 17 00:00:00 2001
From: Roger Braun <roger@rogerbraun.net>
Date: Sun, 19 Feb 2017 13:25:30 +0100
Subject: [PATCH] Add special case for mastodon user links.

They have a span embedded in the link, so let's look at the parent, too.
---
 src/components/status/status.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/components/status/status.js b/src/components/status/status.js
index e75400cb..46add8aa 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -41,6 +41,9 @@ const Status = {
   },
   methods: {
     linkClicked ({target}) {
+      if (target.tagName === 'SPAN') {
+        target = target.parentNode
+      }
       if (target.tagName === 'A') {
         window.open(target.href, '_blank')
       }