aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiComparePages.php
diff options
context:
space:
mode:
authorPetr Pchelko <ppchelko@wikimedia.org>2021-01-22 13:51:43 -0600
committerPetr Pchelko <ppchelko@wikimedia.org>2021-02-08 10:06:46 -0600
commit8d2c674ab0d6b48063923e5cba8c9bfa63c16dc7 (patch)
tree90ab6d62c4c827958a97da87bbc20ff92f880817 /includes/api/ApiComparePages.php
parentcdb17d6ad6117efe5639b8653ab0f38f7bb00c84 (diff)
downloadmediawikicore-8d2c674ab0d6b48063923e5cba8c9bfa63c16dc7.tar.gz
mediawikicore-8d2c674ab0d6b48063923e5cba8c9bfa63c16dc7.zip
Introduce ActorStore, ActorLookup and ActorFactory.
The ActorNormalization factory methods create UserIdentityValue from the database rows, either via fields of a joined table, or via a row from actor table. They assume that the actor_id exist and throw othervise. ActorNormalization is a storage-layer service providing access to finding and acquiring actor_id. The UserIdentityLookup methods do not instantiate new actor on demand, they just find an appropriate row in the actor table and return the result. Bug: T272689 Depends-On: I74d81f3f0233efb17fc8df5178e4c477cc669c6f Change-Id: Icfa1daca960c696a8cef8adab5eab53985802858
Diffstat (limited to 'includes/api/ApiComparePages.php')
-rw-r--r--includes/api/ApiComparePages.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php
index 619d6f929599..9072dcd5148d 100644
--- a/includes/api/ApiComparePages.php
+++ b/includes/api/ApiComparePages.php
@@ -620,6 +620,7 @@ class ApiComparePages extends ApiBase {
if ( isset( $this->props['comment'] ) ) {
$vals["{$prefix}comment"] = $comment->text;
}
+ // @phan-suppress-next-line SecurityCheck-DoubleEscaped false positive
$vals["{$prefix}parsedcomment"] = Linker::formatComment(
$comment->text, $title
);