debug.store_source
config key is set in config/local.config.php
for future items to have sources.') : '',
+ ],
+ '$guid_field' => ['guid', $this->t('Item Guid'), $guid, ''],
+ '$guid' => $guid,
+ '$item_uri' => $item_uri,
+ '$item_id' => $item_id,
+ '$terms' => $terms,
+ '$source' => $source,
]);
}
}
diff --git a/static/defaults.config.php b/static/defaults.config.php
index 83c0d371fe..ea9fca2f56 100644
--- a/static/defaults.config.php
+++ b/static/defaults.config.php
@@ -731,6 +731,10 @@ return [
// ap_log_failure (Boolean)
// Logs every ActivityPub activity that couldn't be compacted
'ap_log_failure' => false,
+
+ // store_source (Boolean)
+ // Store the source of any post that arrived
+ 'store_source' => false,
],
'smarty3' => [
// config_dir (String)
diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po
index be52318680..b163b47af4 100644
--- a/view/lang/C/messages.po
+++ b/view/lang/C/messages.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 2022.12-dev\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-11-08 04:31-0500\n"
+"POT-Creation-Date: 2022-11-08 09:11-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME debug.store_source
config key is set in "
+"config/local.config.php
for future items to have sources."
+msgstr ""
+
+#: src/Module/Moderation/Item/Source.php:92
+msgid "Item Guid"
+msgstr ""
+
#: src/Module/Moderation/Summary.php:53
msgid "Normal Account"
msgstr ""
diff --git a/view/templates/moderation/item/source.tpl b/view/templates/moderation/item/source.tpl
index 41e613b49c..d56bbeacf6 100644
--- a/view/templates/moderation/item/source.tpl
+++ b/view/templates/moderation/item/source.tpl
@@ -1,19 +1,20 @@
{{$typelbl}} | -{{$termlbl}} | -{{$urllbl}} | +{{$l10n.typelbl}} | +{{$l10n.termlbl}} | +{{$l10n.urllbl}} |
---|---|---|---|---|---|
- {{if $term.type == 1}}{{$tag}}{{/if}} - {{if $term.type == 2}}{{$mentionlbl}}{{/if}} - {{if $term.type == 8}}{{$implicitlbl}}{{/if}} + {{if $term.type == 1}} + {{$l10n.taglbl}} + {{/if}} + {{if $term.type == 2}} + {{$l10n.mentionlbl}} + {{/if}} + {{if $term.type == 8}} + {{$l10n.implicitlbl}} + {{/if}} | {{$term.name}} @@ -52,16 +59,40 @@ {{$term.url}} |
{{$source}}
{{$l10n.nosource}}
+ {{if $l10n.noconfig}} +{{$l10n.noconfig nofilter}}
+ {{/if}} +