Fix AP Announce detection (#2672)
This commit is contained in:
parent
424625846e
commit
ea4e2da58d
3 changed files with 3 additions and 4 deletions
|
|
@ -4,9 +4,8 @@ import parse from '../../../mfm/parse';
|
|||
import config from '../../../config';
|
||||
|
||||
export default function(note: INote) {
|
||||
if (note.text == null) return null;
|
||||
|
||||
let html = toHtml(parse(note.text), note.mentionedRemoteUsers);
|
||||
if (html == null) html = '';
|
||||
|
||||
if (note.poll != null) {
|
||||
const url = `${config.url}/notes/${note._id}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue