minor
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
a(:href='`https://${settings.mastodon_instance}/web/statuses/${event.activitypub_id}`') {{$t('common.add')}}
|
||||
|
||||
.card-header(v-for='comment in event.comments' :key='comment.id')
|
||||
img.avatar(:src='comment.data.account.avatar')
|
||||
strong {{comment.data.account.display_name}} {{comment.data.account.username}}
|
||||
img.avatar(:src='comment.data.account.avatar')
|
||||
strong {{comment.data.account.display_name}} @{{comment.data.account.username}}
|
||||
//- a.float-right(:href='comment.data.url')
|
||||
a.float-right(:href='`https://${settings.mastodon_instance}/web/statuses/${comment.data.id}`')
|
||||
small {{comment.data.created_at|datetime}}
|
||||
@@ -209,6 +209,9 @@ export default {
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
.invisible {
|
||||
visibility: visible !important;
|
||||
}
|
||||
}
|
||||
|
||||
.avatar {
|
||||
|
||||
@@ -70,7 +70,7 @@ const userController = {
|
||||
}
|
||||
},
|
||||
|
||||
// ADD EVENT // there's probably a better way to do this with sequelize! TOFIX
|
||||
// ADD EVENT
|
||||
async addEvent(req, res) {
|
||||
const body = req.body
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
h3 #{event.title}
|
||||
p Dove: #{event.place.name} - #{event.place.address}
|
||||
p Quando: #{datetime(event.start_datetime)}
|
||||
p Quando: #{datetime(event.start_datetime*1000)}
|
||||
br
|
||||
if event.image_path
|
||||
<img style="width: 100%; max-height: 89vh; margin: 0 auto;" src="#{config.baseurl}/media/#{event.image_path}" />
|
||||
|
||||
@@ -1 +1 @@
|
||||
= `[${config.title}] ${event.title} @${event.place.name} ${datetime(event.start_datetime)}`
|
||||
= `[${config.title}] ${event.title} @${event.place.name} ${datetime(event.start_datetime*1000)}`
|
||||
|
||||
@@ -56,6 +56,7 @@ If you want to `)
|
||||
|
||||
// send confirmed event to mastodon
|
||||
await db.notification.create({ type: 'mastodon', filters: { is_visible: true } })
|
||||
await db.notification.create({ type: 'email', filters: { is_visible: true } })
|
||||
|
||||
// send every event to admin
|
||||
await db.notification.create({ type: 'admin_email' })
|
||||
|
||||
Reference in New Issue
Block a user