This commit is contained in:
lesion 2024-01-08 00:02:07 +01:00
parent 04403e0a34
commit 6842e1d6de
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 2 additions and 6 deletions

View file

@ -105,8 +105,8 @@ module.exports = () => {
* @param {string} [query] - search for this string
* @param {array} [tags] - List of tags
* @param {array} [places] - List of places id
* @param {array} [online_locations] - List of online locations
* @param {integer} [max] - Limit events
* @param {boolean} [show_multidate] - Show also multidate events (default: true)
* @param {boolean} [show_recurrent] - Show also recurrent events (default: as choosen in admin settings)
* @param {integer} [page] - Pagination
* @param {boolean} [older] - select <= start instead of >=

View file

@ -164,10 +164,6 @@ const Helpers = {
}
fedi_user = await Helpers.signAndSend('', URL, 'get')
.catch(e => {
log.error(`[FEDI] getActor ${URL}: %s`, e?.response?.data?.error ?? String(e) )
return false
})
if (fedi_user) {
log.info('[FEDI] Create a new AP User "%s" and associate it to instance "%s"', URL, instance.domain)

View file

@ -11,7 +11,7 @@ module.exports = {
having: Sequelize.where(Sequelize.fn('COUNT', Sequelize.col('events.id')), '=', 0)
})
if (!places.length) { return }
log.debug(`Remove ${places.length} unrelated places`)
log.debug(`Remove ${places.length} unrelated places: %s`, places.map(p => p.name).join(', '))
const ids = places.map(p => p.id)
await Place.destroy({