Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giraffaman committed Mar 23, 2024
1 parent afe90dd commit 06949ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/post_tags/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ public function onTagSet(TagSetEvent $event): void
global $user;
error_log("post_tag: new tag set!");
if ($user->can(Permissions::EDIT_IMAGE_TAG) && (!$event->image->is_locked() || $user->can(Permissions::EDIT_IMAGE_LOCK))) {
error_log("post_tag: ".$event->new_tags." is normal tag.");
foreach($event->new_tags as $nt) {
error_log("new tag ".$nt." is normal tag");
}
$event->image->set_tags($event->new_tags);
}
foreach ($event->metatags as $tag) {
Expand Down

0 comments on commit 06949ab

Please sign in to comment.