X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tumblr%2Ftumblr.php;h=a7a0db4c0657a3fe9bee56d79827a1a1ef3d0443;hb=af31a988aaf0b0c970d8f67323dbb66faa657b3b;hp=78c7d3849342d9350a24b258bec79837893bdefa;hpb=187ba8383d96aa510dfa112dc2366c7a79d98e28;p=friendica-addons.git diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index 78c7d384..a7a0db4c 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -734,6 +734,9 @@ function tumblr_fetch_tags(int $uid) $id = tumblr_process_post($post, $uid, Item::PR_TAG); if (!empty($id)) { Logger::debug('Tag post imported', ['tag' => $tag, 'id' => $id]); + $post = Post::selectFirst(['uri-id'], ['id' => $id]); + $stored = Post\Category::storeFileByURIId($post['uri-id'], $uid, Post\Category::SUBCRIPTION, $tag); + Logger::debug('Stored tag subscription for user', ['uri-id' => $post['uri-id'], 'uid' => $uid, 'tag' => $tag, 'stored' => $stored]); } } }