[TAGS] Fix some minor logic issues with Actor Tags and Circles

This commit is contained in:
2021-12-19 17:09:00 +00:00
parent a9feb79825
commit ed67da89dc
5 changed files with 25 additions and 16 deletions

View File

@@ -68,7 +68,7 @@ class RelatedTags extends Plugin
'related-actor-tags-' . implode('-', $tags),
fn () => DB::sql(
<<<'EOQ'
select distinct on (at.canonical) canonical, at.tagger, at.tagged, at.tag, at.modified
select distinct on (at.canonical) canonical, at.tagger, at.tagged, at.tag, at.use_canonical, at.modified
from actor_tag at
where at.tagged in (select at.tagged from actor_tag at where at.canonical in (:tags))
and not at.canonical in (:tags)