Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Fix handling of invalid recps on private messages
Browse files Browse the repository at this point in the history
thanks @clehner for the patch!
  • Loading branch information
mmckegg committed Jan 11, 2018
1 parent 2d8c9a0 commit 1b12a6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugs/message/html/meta/private.js
Expand Up @@ -13,7 +13,9 @@ exports.create = (api) => {
return nest('message.html.meta', function privateMeta (msg) {
if (msg.value.private) {
return h('span.private', map(msg.value.content.recps, id => {
id = msgs.link(id, 'feed').link
const feed = msgs.link(id, 'feed')
if (!feed) return
id = feed.link
return h('a', {
href: id,
title: api.about.obs.name(id)
Expand Down

0 comments on commit 1b12a6e

Please sign in to comment.