diff --git a/Dockerfile b/Dockerfile index d4bb6ea..5aa1ac0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,6 +93,7 @@ COPY --link frankenphp/worker.Caddyfile /etc/caddy/worker.Caddyfile # prevent the reinstallation of vendors at every changes in the source code COPY --link composer.* symfony.* ./ +COPY --link patches ./patches RUN set -eux; \ composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress diff --git a/assets/controllers/comment_reply_controller.js b/assets/controllers/comment_reply_controller.js index a6dbde8..8843b2f 100644 --- a/assets/controllers/comment_reply_controller.js +++ b/assets/controllers/comment_reply_controller.js @@ -67,10 +67,14 @@ export default class extends Controller { return; } this.setHint('Preparing event…'); + const tags = [...this._tags]; + if (!tags.some((t) => Array.isArray(t) && t[0] === 'client')) { + tags.push(['client', 'Decent Newsroom']); + } const unsigned = { kind: 1111, created_at: Math.floor(Date.now() / 1000), - tags: this._tags, + tags, // Keep user-authored content clean; reply context is encoded in NIP-22 tags. content: text, };