From 4ed0cd068bda4dd2241eb932735396ffd5e30e81 Mon Sep 17 00:00:00 2001 From: Ev Bogue Date: Mon, 29 Jul 2019 13:01:22 -0500 Subject: add mentions button to profile pages --- views.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views.js b/views.js index edb27dd..56a9735 100644 --- a/views.js +++ b/views.js @@ -48,8 +48,16 @@ function profilePage (src, keys) { } }, ['Identify ' + src.substring(0, 10) + '...']) + var mentionsButton = h('button', { + onclick: function () { + location.href = '#?' + src + } + }, ['Mentions']) + profile.appendChild(identifyButton) + profile.appendChild(mentionsButton) + localforage.getItem('subscriptions').then(function (subs) { if (subs.includes(src)) { profile.appendChild(h('button', { -- cgit v1.2.3-70-g09d2