mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add masto verification link support
This commit is contained in:
parent
5b4c7fc20d
commit
9bacc48643
19 changed files with 163 additions and 63 deletions
|
@ -2,7 +2,7 @@ import { Feed } from '@peertube/feed'
|
|||
import { CustomTag, CustomXMLNS, Person } from '@peertube/feed/lib/typings/index.js'
|
||||
import { maxBy, pick } from '@peertube/peertube-core-utils'
|
||||
import { ActorImageType } from '@peertube/peertube-models'
|
||||
import { mdToOneLinePlainText } from '@server/helpers/markdown.js'
|
||||
import { mdToPlainText } from '@server/helpers/markdown.js'
|
||||
import { CONFIG } from '@server/initializers/config.js'
|
||||
import { WEBSERVER } from '@server/initializers/constants.js'
|
||||
import { UserModel } from '@server/models/user/user.js'
|
||||
|
@ -35,7 +35,7 @@ export function initFeed (parameters: {
|
|||
|
||||
return new Feed({
|
||||
title: name,
|
||||
description: mdToOneLinePlainText(description),
|
||||
description: mdToPlainText(description),
|
||||
// updated: TODO: somehowGetLatestUpdate, // optional, default = today
|
||||
id: link || webserverUrl,
|
||||
link: link || webserverUrl,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue