1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Add masto verification link support

This commit is contained in:
Chocobozzz 2024-12-19 10:29:14 +01:00
parent 5b4c7fc20d
commit 9bacc48643
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 163 additions and 63 deletions

View file

@ -1,5 +1,5 @@
import { VideoIncludeType } from '@peertube/peertube-models'
import { mdToOneLinePlainText, toSafeHtml } from '@server/helpers/markdown.js'
import { mdToPlainText, toSafeHtml } from '@server/helpers/markdown.js'
import { CONFIG } from '@server/initializers/config.js'
import { WEBSERVER } from '@server/initializers/constants.js'
import { getServerActor } from '@server/models/application/application.js'
@ -47,7 +47,7 @@ export function getCommonVideoFeedAttributes (video: VideoModel) {
return {
title: video.name,
link: localLink,
description: mdToOneLinePlainText(video.getTruncatedDescription()),
description: mdToPlainText(video.getTruncatedDescription()),
content: toSafeHtml(video.description),
date: video.publishedAt,