s/toAPNote/toAPEvent/

This commit is contained in:
lesion
2021-11-10 11:03:55 +01:00
parent 38fe9032c1
commit 8a7a60f84d
4 changed files with 5 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ Event.belongsTo(Event, { as: 'parent' })
SequelizeSlugify.slugifyModel(Event, { source: ['title'], overwrite: false })
Event.prototype.toAPNote = function (username, locale, to = []) {
Event.prototype.toAP = function (username, locale, to = []) {
const tags = this.tags && this.tags.map(t => t.tag.replace(/[ #]/g, '_'))
const plainDescription = htmlToText(this.description && this.description.replace('\n', '').slice(0, 1000))
const content = `