diff --git a/assets/javascripts/discourse/controllers/admin-plugins-activity-pub-actor-show.js b/assets/javascripts/discourse/controllers/admin-plugins-activity-pub-actor-show.js index 78c81c1f..1e5b2796 100644 --- a/assets/javascripts/discourse/controllers/admin-plugins-activity-pub-actor-show.js +++ b/assets/javascripts/discourse/controllers/admin-plugins-activity-pub-actor-show.js @@ -18,6 +18,7 @@ export default class AdminPluginsActivityPubActorShow extends Controller { @tracked enabled = this.actor.enabled; @tracked saving = false; @tracked saveResponse = null; + @tracked actor; modelTypes = [ { diff --git a/assets/javascripts/discourse/templates/admin-plugins-activity-pub-actor-show.hbs b/assets/javascripts/discourse/templates/admin-plugins-activity-pub-actor-show.hbs index 0ce52b4e..6341967f 100644 --- a/assets/javascripts/discourse/templates/admin-plugins-activity-pub-actor-show.hbs +++ b/assets/javascripts/discourse/templates/admin-plugins-activity-pub-actor-show.hbs @@ -42,6 +42,7 @@ @model={{this.actor.model}} @modelType={{this.actor.model_type}} /> +
{{#if this.showForm}} - {{#if this.actor.handle}} -
- - -
- {{i18n "admin.discourse_activity_pub.actor.handle_description"}} -
-
- {{else}} -
- -
- - @{{this.site.activity_pub_host}} -
-
- {{d-icon "exclamation-triangle"}}{{i18n - "admin.discourse_activity_pub.actor.username_description" - }} -
-
- {{/if}} +
+ +
+ + @{{this.site.activity_pub_host}} +
+
+ {{i18n + "admin.discourse_activity_pub.actor.username_description" + min_length=this.siteSettings.min_username_length + max_length=this.siteSettings.max_username_length + }} +
+