diff options
author | Ev Bogue <ev@evbogue.com> | 2019-07-29 13:01:22 -0500 |
---|---|---|
committer | Ev Bogue <ev@evbogue.com> | 2019-07-29 13:01:22 -0500 |
commit | 4ed0cd068bda4dd2241eb932735396ffd5e30e81 (patch) | |
tree | ee3921226c0e4aa60e783718901cdc9aa1b00edd | |
parent | 00ded79fa52434fddf007ac94aa0315b51bfee3c (diff) |
add mentions button to profile pages
-rw-r--r-- | views.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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', { |